You are here

maintenance-task-list.html.twig in Drupal 10

Theme override 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'.

File

core/themes/stable9/templates/admin/maintenance-task-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  15. <h2 class="visually-hidden">{{ 'Installation tasks'|t }}</h2>
  16. <ol class="task-list">
  17. {% for task in tasks %}
  18. <li{{ task.attributes }}>
  19. {{ task.item }}
  20. {% if task.status %}<span class="visually-hidden"> ({{ task.status }})</span>{% endif %}
  21. </li>
  22. {% endfor %}
  23. </ol>