admin-block-content.html.twig

Same filename in this branch
  1. main core/themes/stable9/templates/admin/admin-block-content.html.twig
  2. main core/themes/claro/templates/admin/admin-block-content.html.twig
  3. main core/themes/admin/templates/admin/admin-block-content.html.twig
  4. main core/themes/default_admin/templates/admin/admin-block-content.html.twig
Same filename and directory in other branches
  1. 10 core/themes/stable9/templates/admin/admin-block-content.html.twig
  2. 10 core/themes/claro/templates/admin/admin-block-content.html.twig
  3. 11.x core/themes/stable9/templates/admin/admin-block-content.html.twig
  4. 11.x core/themes/claro/templates/admin/admin-block-content.html.twig
  5. 11.x core/modules/system/templates/admin-block-content.html.twig
  6. 10 core/modules/system/templates/admin-block-content.html.twig
  7. 9 core/themes/stable9/templates/admin/admin-block-content.html.twig
  8. 9 core/themes/seven/templates/admin-block-content.html.twig
  9. 9 core/themes/claro/templates/admin/admin-block-content.html.twig
  10. 9 core/themes/stable/templates/admin/admin-block-content.html.twig
  11. 9 core/modules/system/templates/admin-block-content.html.twig
  12. 8.9.x core/themes/seven/templates/admin-block-content.html.twig
  13. 8.9.x core/themes/claro/templates/admin/admin-block-content.html.twig
  14. 8.9.x core/themes/stable/templates/admin/admin-block-content.html.twig
  15. 8.9.x core/modules/system/templates/admin-block-content.html.twig
  16. 11.x core/themes/admin/templates/admin/admin-block-content.html.twig
  17. 11.x core/themes/default_admin/templates/admin/admin-block-content.html.twig

Default theme implementation for the content of an administrative block.

Available variables:

  • content: List of administrative menu items. Each menu item contains:

    • link: Link to the admin section.
    • title: Short name of the section.
    • description: Description of the administrative menu item.
    • url: URI to the admin section.
    • options: URL options. See \Drupal\Core\Url::fromUri() for details.
  • attributes: HTML attributes to be added to the element.

See also

\Drupal\system\Theme\SystemAdminThemePreprocess::preprocessAdminBlockContent()

5 theme calls to admin-block-content.html.twig
EntityDisplayModeController::formModeTypeSelection in core/modules/field_ui/src/Controller/EntityDisplayModeController.php
Provides a list of eligible entity types for adding form modes.
EntityDisplayModeController::viewModeTypeSelection in core/modules/field_ui/src/Controller/EntityDisplayModeController.php
Provides a list of eligible entity types for adding view modes.
SystemAdminThemePreprocess::preprocessSystemAdminIndex in core/modules/system/src/Theme/SystemAdminThemePreprocess.php
Prepares variables for admin index templates.
SystemController::overview in core/modules/system/src/Controller/SystemController.php
Provide the administration overview page.
SystemManager::getBlockContents in core/modules/system/src/SystemManager.php
Loads the contents of a menu block.

File

core/modules/system/templates/admin-block-content.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the content of an administrative block.
  5. *
  6. * Available variables:
  7. * - content: List of administrative menu items. Each menu item contains:
  8. * - link: Link to the admin section.
  9. * - title: Short name of the section.
  10. * - description: Description of the administrative menu item.
  11. * - url: URI to the admin section.
  12. * - options: URL options. See \Drupal\Core\Url::fromUri() for details.
  13. * - attributes: HTML attributes to be added to the element.
  14. *
  15. * @see \Drupal\system\Theme\SystemAdminThemePreprocess::preprocessAdminBlockContent()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% if content %}
  21. <dl{{ attributes.addClass('list-group') }}>
  22. {% for item in content %}
  23. <dt class="list-group__link">{{ item.link }}</dt>
  24. {% if item.description %}
  25. <dd class="list-group__description" data-admin-compact-collapsible>{{ item.description }}</dd>
  26. {% endif %}
  27. {% endfor %}
  28. </dl>
  29. {% endif %}

Related topics


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