Display template data

This article is machine translated.

The available template data varies depending on the template source. Usually the complete data set is available in the template. The individual data records correspond to the respective database entries and can be $this->…accessed in the template by specifying

You can display all available template data of a template. You can either use

<?php $this->dumpTemplateVars() ?>

or via

<?php dump($this) ?>

Both statements use the Symfony VarDumper component to display the template data.

If you use template inheritance, the template data is only displayed in debug mode or if the statement is between $this->block(…)and $this->endblock()