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

Breadcrumb

  1. Drupal Core 11.1.x

admin-page.html.twig

Same filename in this branch
  1. 11.1.x core/themes/stable9/templates/admin/admin-page.html.twig
  2. 11.1.x core/themes/claro/templates/admin/admin-page.html.twig

Default theme implementation for an administrative page.

Available variables:

  • system_compact_link: Themed link to toggle compact view.
  • containers: A 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/modules/system/templates/admin-page.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an administrative page.
  5. *
  6. * Available variables:
  7. * - system_compact_link: Themed link to toggle compact view.
  8. * - containers: A 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. * @ingroup themeable
  15. */
  16. #}
  17. <div class="clearfix">
  18. {{ system_compact_link }}
  19. {% for container in containers %}
  20. <div class="layout-column layout-column--half">
  21. {% for block in container.blocks %}
  22. {{ block }}
  23. {% endfor %}
  24. </div>
  25. {% endfor %}
  26. </div>

Related topics

Theme system overview
Functions and templates for the user interface that themes can override.
RSS feed
Powered by Drupal