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

Breadcrumb

  1. Drupal Core 11.1.x

system-admin-index.html.twig

Same filename in this branch
  1. 11.1.x core/modules/system/templates/system-admin-index.html.twig

Theme override for the admin index page.

Available variables:

  • system_compact_link: Themed link to toggle compact view.
  • containers: A list of administrative containers keyed by position: left or right. Each container in the list contains:

    • blocks: A list of administrative blocks, rendered through admin-block.html.twig.

See also

template_preprocess_system_admin_index()

1 theme call to system-admin-index.html.twig
AdminController::index in core/modules/system/src/Controller/AdminController.php
Prints a listing of admin tasks, organized by module.

File

core/themes/stable9/templates/admin/system-admin-index.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the admin index page.
  5. *
  6. * Available variables:
  7. * - system_compact_link: Themed link to toggle compact view.
  8. * - containers: A list of administrative containers keyed by position: left or
  9. * right. Each container in the list contains:
  10. * - blocks: A list of administrative blocks, rendered
  11. * through admin-block.html.twig.
  12. *
  13. * @see template_preprocess_system_admin_index()
  14. */
  15. #}
  16. <div class="admin clearfix">
  17. {{ system_compact_link }}
  18. {% for position, blocks in containers %}
  19. <div class="{{ position }} clearfix">
  20. {% for block in blocks %}
  21. {{ block }}
  22. {% endfor %}
  23. </div>
  24. {% endfor %}
  25. </div>

API Navigation

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