admin-page.html.twig

Same filename in this branch
  1. 9 core/themes/claro/templates/admin/admin-page.html.twig
  2. 9 core/themes/stable/templates/admin/admin-page.html.twig
  3. 9 core/modules/system/templates/admin-page.html.twig
Same filename and directory in other branches
  1. 8.9.x core/themes/claro/templates/admin/admin-page.html.twig
  2. 8.9.x core/themes/stable/templates/admin/admin-page.html.twig
  3. 8.9.x core/modules/system/templates/admin-page.html.twig
  4. 10 core/themes/stable9/templates/admin/admin-page.html.twig
  5. 10 core/themes/claro/templates/admin/admin-page.html.twig
  6. 10 core/modules/system/templates/admin-page.html.twig
  7. 11.x core/themes/stable9/templates/admin/admin-page.html.twig
  8. 11.x core/themes/claro/templates/admin/admin-page.html.twig
  9. 11.x core/modules/system/templates/admin-page.html.twig

Theme override for an administrative page.

Available variables:

  • system_compact_link: Themed link to toggle compact view.
  • containers: An list of administrative blocks keyed by position: left or right. Contains:

    • blocks: A list of blocks within a container.

See also

template_preprocess_admin_page()

1 theme call to admin-page.html.twig
SystemController::overview in core/modules/system/src/Controller/SystemController.php
Provide the administration overview page.

File

core/themes/stable9/templates/admin/admin-page.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for an administrative page.
  5. *
  6. * Available variables:
  7. * - system_compact_link: Themed link to toggle compact view.
  8. * - containers: An list of administrative blocks keyed by position: left or
  9. * right. Contains:
  10. * - blocks: A list of blocks within a container.
  11. *
  12. * @see template_preprocess_admin_page()
  13. */
  14. #}
  15. <div class="clearfix">
  16. {{ system_compact_link }}
  17. {% for container in containers %}
  18. <div class="layout-column layout-column--half">
  19. {% for block in container.blocks %}
  20. {{ block }}
  21. {% endfor %}
  22. </div>
  23. {% endfor %}
  24. </div>

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