I am trying to do a var dump from a Drupal 8 Controller class. This is not working because controllers need to send a response. I just need to see the contents of a variable and I have not idea how to do this since I've tried all response combinations and can't seem to get it working.
This is my variable.
$storage = \Drupal::entityTypeManager()->getStorage('node'); $node = $storage->load($rep_id);
I am trying to
var_dump($node) to see what's in it. Can anyone help?