system-admin-index.html.twig

Same filename in this branch
  1. 9 core/themes/stable/templates/admin/system-admin-index.html.twig
  2. 9 core/modules/system/templates/system-admin-index.html.twig
Same filename in other branches
  1. 8.9.x core/themes/stable/templates/admin/system-admin-index.html.twig
  2. 8.9.x core/modules/system/templates/system-admin-index.html.twig
  3. 10 core/themes/stable9/templates/admin/system-admin-index.html.twig
  4. 10 core/modules/system/templates/system-admin-index.html.twig
  5. 11.x core/themes/stable9/templates/admin/system-admin-index.html.twig
  6. 11.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:

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>

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