system-admin-index.html.twig

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

Default theme implementation 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/modules/system/templates/system-admin-index.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  16. */
  17. #}
  18. <div class="admin clearfix">
  19. {{ system_compact_link }}
  20. {% for position, blocks in containers %}
  21. <div class="{{ position }} clearfix">
  22. {% for block in blocks %}
  23. {{ block }}
  24. {% endfor %}
  25. </div>
  26. {% endfor %}
  27. </div>

Related topics


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