description.html.twig

Same filename in this branch
  1. 4.0.x modules/menu_example/templates/description.html.twig
  2. 4.0.x modules/form_api_example/templates/description.html.twig
  3. 4.0.x modules/js_example/templates/description.html.twig
  4. 4.0.x modules/page_example/templates/description.html.twig
  5. 4.0.x modules/node_type_example/templates/description.html.twig
  6. 4.0.x modules/pager_example/templates/description.html.twig
  7. 4.0.x modules/block_example/templates/description.html.twig
  8. 4.0.x modules/tabledrag_example/templates/description.html.twig
  9. 4.0.x modules/rest_example/templates/description.html.twig
  10. 4.0.x modules/testing_example/templates/description.html.twig
  11. 4.0.x modules/tour_example/templates/description.html.twig
  12. 4.0.x modules/config_entity_example/templates/description.html.twig
  13. 4.0.x modules/phpunit_example/templates/description.html.twig
  14. 4.0.x modules/field_permission_example/templates/description.html.twig
  15. 4.0.x modules/stream_wrapper_example/templates/description.html.twig
  16. 4.0.x modules/ajax_example/templates/description.html.twig
  17. 4.0.x modules/hooks_example/templates/description.html.twig
  18. 4.0.x modules/field_example/templates/description.html.twig
  19. 4.0.x tests/modules/examples_description_test/templates/description.html.twig
Same filename in other branches
  1. 3.x modules/menu_example/templates/description.html.twig
  2. 3.x modules/form_api_example/templates/description.html.twig
  3. 3.x modules/js_example/templates/description.html.twig
  4. 3.x modules/page_example/templates/description.html.twig
  5. 3.x modules/node_type_example/templates/description.html.twig
  6. 3.x modules/pager_example/templates/description.html.twig
  7. 3.x modules/block_example/templates/description.html.twig
  8. 3.x modules/tabledrag_example/templates/description.html.twig
  9. 3.x modules/rest_example/templates/description.html.twig
  10. 3.x modules/testing_example/templates/description.html.twig
  11. 3.x modules/tour_example/templates/description.html.twig
  12. 3.x modules/config_entity_example/templates/description.html.twig
  13. 3.x modules/phpunit_example/templates/description.html.twig
  14. 3.x modules/render_example/templates/description.html.twig
  15. 3.x modules/field_permission_example/templates/description.html.twig
  16. 3.x modules/stream_wrapper_example/templates/description.html.twig
  17. 3.x modules/ajax_example/templates/description.html.twig
  18. 3.x modules/hooks_example/templates/description.html.twig
  19. 3.x modules/field_example/templates/description.html.twig
  20. 3.x tests/modules/examples_description_test/templates/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 %}