description.html.twig

{#

Description text for the Render API Example.

#}

{% set arrays_url = path('render_example.arrays') %}
{% set alter_url = path('render_example.altering') %}

{% trans %}
<h2>What are render arrays?</h2>

<p>
  These are examples of how to construct render arrays.</p>

<p>
  You use render arrays to specify to Drupal how to construct HTML content.</p>

<ul>
  <li><a href="{{ arrays_url }}">Demonstration of render array usage.</a></li>
  <li><a href="{{ alter_url }}">Using alter hooks to modify existing render arrays.</a></li>
</ul>
{% endtrans %}

File

modules/render_example/templates/description.html.twig

View source
  1. {#
  2. Description text for the Render API Example.
  3. #}
  4. {% set arrays_url = path('render_example.arrays') %}
  5. {% set alter_url = path('render_example.altering') %}
  6. {% trans %}
  7. <h2>What are render arrays?</h2>
  8. <p>
  9. These are examples of how to construct render arrays.</p>
  10. <p>
  11. You use render arrays to specify to Drupal how to construct HTML content.</p>
  12. <ul>
  13. <li><a href="{{ arrays_url }}">Demonstration of render array usage.</a></li>
  14. <li><a href="{{ alter_url }}">Using alter hooks to modify existing render arrays.</a></li>
  15. </ul>
  16. {% endtrans %}