Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

help-section.html.twig

Same filename in this branch
  1. 11.1.x core/profiles/demo_umami/themes/umami/templates/classy/misc/help-section.html.twig
  2. 11.1.x core/themes/claro/templates/classy/misc/help-section.html.twig
  3. 11.1.x core/modules/help/templates/help-section.html.twig

Theme override 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/themes/stable9/templates/admin/help-section.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  13. <h2>{{ title }}</h2>
  14. <p>{{ description }}</p>
  15. {% if links %}
  16. <ul>
  17. {% for link in links %}
  18. <li>{{ link }}</li>
  19. {% endfor %}
  20. </ul>
  21. {% else %}
  22. <p>{{ empty }}</p>
  23. {% endif %}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal