'How can I print variable in twig
How can I Use {{dump(variable_name)}} Here if result is a variable
<pre>
{{dump(result)}}
</pre>
Solution 1:[1]
php
->get('field_example') and ->field_example
are the same and so is TWIG
.get('field_example') and .field_example
both get the field object (field item list) from which you can get the field value(s).
{{ content.field_example }}
hope answer the questions
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Pierre |
