in Web & Tech

Get all variables available in a Drupal Template

Sometimes you just don’t know in which array or object the chunk of information you need for your Drupal template is hidden. You can print out all defined variables using get_defined_vars(). Be aware that this might use a lot of memory.

dpm(get_defined_vars());

Write a Comment

Comment