help-section.html.twig

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/misc/help-section.html.twig
  2. 9 core/themes/stable9/templates/admin/help-section.html.twig
  3. 9 core/themes/seven/templates/classy/misc/help-section.html.twig
  4. 9 core/themes/claro/templates/classy/misc/help-section.html.twig
  5. 9 core/themes/bartik/templates/classy/misc/help-section.html.twig
  6. 9 core/themes/stable/templates/admin/help-section.html.twig
  7. 9 core/themes/classy/templates/misc/help-section.html.twig
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/misc/help-section.html.twig
  2. 8.9.x core/themes/seven/templates/classy/misc/help-section.html.twig
  3. 8.9.x core/themes/claro/templates/classy/misc/help-section.html.twig
  4. 8.9.x core/themes/bartik/templates/classy/misc/help-section.html.twig
  5. 8.9.x core/themes/stable/templates/admin/help-section.html.twig
  6. 8.9.x core/themes/classy/templates/misc/help-section.html.twig
  7. 8.9.x core/modules/help/templates/help-section.html.twig
  8. 10 core/profiles/demo_umami/themes/umami/templates/classy/misc/help-section.html.twig
  9. 10 core/themes/stable9/templates/admin/help-section.html.twig
  10. 10 core/themes/claro/templates/classy/misc/help-section.html.twig
  11. 10 core/modules/help/templates/help-section.html.twig
  12. 11.x core/profiles/demo_umami/themes/umami/templates/classy/misc/help-section.html.twig
  13. 11.x core/themes/stable9/templates/admin/help-section.html.twig
  14. 11.x core/themes/claro/templates/classy/misc/help-section.html.twig
  15. 11.x core/modules/help/templates/help-section.html.twig

Default theme implementation for a section of the help page.

Available variables:

  • title: The section title.
  • description: The description text for the section.
  • links: Links to display in the section.
  • empty: Text to display if there are no links.
1 theme call to help-section.html.twig
HelpController::helpMain in core/modules/help/src/Controller/HelpController.php
Prints a page listing various types of help.

File

core/modules/help/templates/help-section.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a section of the help page.
  5. *
  6. * Available variables:
  7. * - title: The section title.
  8. * - description: The description text for the section.
  9. * - links: Links to display in the section.
  10. * - empty: Text to display if there are no links.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <h2>{{ title }}</h2>
  16. <p>{{ description }}</p>
  17. {% if links %}
  18. <ul>
  19. {% for link in links %}
  20. <li>{{ link }}</li>
  21. {% endfor %}
  22. </ul>
  23. {% else %}
  24. <p>{{ empty }}</p>
  25. {% endif %}

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.