maintenance-task-list.html.twig in Drupal 10
Same filename in this branch
Same filename and directory in other branches
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.twigView source
- {#
- /**
- * @file
- * 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'.
- *
- * @ingroup themeable
- */
- #}
- <h2 class="visually-hidden">{{ 'Installation tasks'|t }}</h2>
- <ol class="task-list">
- {% for task in tasks %}
- <li{{ task.attributes }}>
- {{ task.item }}
- {% if task.status %}<span class="visually-hidden"> ({{ task.status }})</span>{% endif %}
- </li>
- {% endfor %}
- </ol>