maintenance-task-list.html.twig in Drupal 10
Same filename in this branch
Same filename and directory in other branches
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'.
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/themes/stable9/templates/admin/maintenance-task-list.html.twigView source
- {#
- /**
- * @file
- * 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'.
- */
- #}
- <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>