description.html.twig

{#

Description text for the Menu Example.

#}

{% set custom_access = path('examples.menu_example.custom_access') %}
{% set restricted = path('examples.menu_example.restricted') %}
{% set route_only = path('examples.menu_example.route_only') %}
{% set tabs = path('examples.menu_example.tabs') %}
{% set use_url_arguments = path('examples.menu_example.use_url_arguments') %}
{% set title_callbacks = path('examples.menu_example.title_callbacks') %}
{% set placeholder_argument = path('examples.menu_example.placeholder_argument') %}
{% set path_override = path('example.menu_example.path_override') %}

{% trans %}

<p>This page is displayed by the simplest (and base) menu example. Note that
the title of the page is the same as the link title. There are a number of
examples here, from the most basic (like this one) to extravagant mappings of
loaded placeholder arguments. Enjoy!</p>

<ul>
    <li><a href={{ custom_access }}>Custom Access Example</a></li>
    <li><a href={{ restricted }}>Restricted Example</a></li>
    <li><a href={{ route_only }}>Route only example</a></li>
    <li><a href={{ tabs }}>Tabs</a></li>
    <li><a href={{ use_url_arguments }}>URL Arguments</a></li>
    <li><a href={{ title_callbacks }}>Dynamic title</a></li>
    <li><a href={{ placeholder_argument }}>Placeholder Arguments</a></li>
    <li><a href={{ path_override }}>Path Override</a></li>
</ul>

{% endtrans %}

File

modules/menu_example/templates/description.html.twig

View source
  1. {#
  2. Description text for the Menu Example.
  3. #}
  4. {% set custom_access = path('examples.menu_example.custom_access') %}
  5. {% set restricted = path('examples.menu_example.restricted') %}
  6. {% set route_only = path('examples.menu_example.route_only') %}
  7. {% set tabs = path('examples.menu_example.tabs') %}
  8. {% set use_url_arguments = path('examples.menu_example.use_url_arguments') %}
  9. {% set title_callbacks = path('examples.menu_example.title_callbacks') %}
  10. {% set placeholder_argument = path('examples.menu_example.placeholder_argument') %}
  11. {% set path_override = path('example.menu_example.path_override') %}
  12. {% trans %}
  13. <p>This page is displayed by the simplest (and base) menu example. Note that
  14. the title of the page is the same as the link title. There are a number of
  15. examples here, from the most basic (like this one) to extravagant mappings of
  16. loaded placeholder arguments. Enjoy!</p>
  17. <ul>
  18. <li><a href={{ custom_access }}>Custom Access Example</a></li>
  19. <li><a href={{ restricted }}>Restricted Example</a></li>
  20. <li><a href={{ route_only }}>Route only example</a></li>
  21. <li><a href={{ tabs }}>Tabs</a></li>
  22. <li><a href={{ use_url_arguments }}>URL Arguments</a></li>
  23. <li><a href={{ title_callbacks }}>Dynamic title</a></li>
  24. <li><a href={{ placeholder_argument }}>Placeholder Arguments</a></li>
  25. <li><a href={{ path_override }}>Path Override</a></li>
  26. </ul>
  27. {% endtrans %}