maintenance-task-list.html.twig

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

Default theme implementation for a list of maintenance tasks to perform.

Available variables:

  • tasks: A list of maintenance tasks to perform. Each item in the list has the following variables:

    • item: The maintenance task.
    • attributes: HTML attributes for the maintenance task.
    • status: (optional) Text describing the status of the maintenance task, 'active' or 'done'.
2 theme calls to maintenance-task-list.html.twig
DbUpdateController::updateTasksList in core/modules/system/src/Controller/DbUpdateController.php
Provides the update task list render array.
install_display_output in core/includes/install.core.inc
Displays themed installer output and ends the page request.

File

core/modules/system/templates/maintenance-task-list.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a list of maintenance tasks to perform.
  5. *
  6. * Available variables:
  7. * - tasks: A list of maintenance tasks to perform. Each item in the list has
  8. * the following variables:
  9. * - item: The maintenance task.
  10. * - attributes: HTML attributes for the maintenance task.
  11. * - status: (optional) Text describing the status of the maintenance task,
  12. * 'active' or 'done'.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <h2 class="visually-hidden">{{ 'Installation tasks'|t }}</h2>
  18. <ol class="task-list">
  19. {% for task in tasks %}
  20. <li{{ task.attributes }}>
  21. {{ task.item }}
  22. {% if task.status %}<span class="visually-hidden"> ({{ task.status }})</span>{% endif %}
  23. </li>
  24. {% endfor %}
  25. </ol>

Related topics


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