Commit 63a23327 authored by alexpott's avatar alexpott

Issue #2335003 by joshi.rohit100, rootwork, tuutti | joelpittet: Rename...

Issue #2335003 by joshi.rohit100, rootwork, tuutti | joelpittet: Rename task-list.html.twig to maintenance-task-list.html.twig.
parent bc20bd54
......@@ -769,7 +769,7 @@ function install_tasks($install_state) {
* Returns a list of tasks that should be displayed to the end user.
*
* The output of this function is a list suitable for sending to
* theme_task_list().
* maintenance-task-list.html.twig.
*
* @param $install_state
* An array of information about the current installation state.
......@@ -778,7 +778,7 @@ function install_tasks($install_state) {
* A list of tasks, with keys equal to the machine-readable task name and
* values equal to the name that should be displayed.
*
* @see theme_task_list()
* @see maintenance-task-list.html.twig
*/
function install_tasks_to_display($install_state) {
$displayed_tasks = array();
......@@ -915,7 +915,7 @@ function install_display_output($output, $install_state) {
// been completed.
$active_task = $install_state['installation_finished'] ? NULL : $install_state['active_task'];
$task_list = array(
'#theme' => 'task_list',
'#theme' => 'maintenance_task_list',
'#items' => install_tasks_to_display($install_state),
'#active' => $active_task,
);
......
......@@ -1544,7 +1544,7 @@ function template_preprocess_container(&$variables) {
/**
* Prepares variables for maintenance task list templates.
*
* Default template: task-list.html.twig.
* Default template: maintenance-task-list.html.twig.
*
* @param array $variables
* An associative array containing:
......@@ -1553,7 +1553,7 @@ function template_preprocess_container(&$variables) {
* dangerous HTML such as SCRIPT tags.
* - active: The key for the currently active maintenance task.
*/
function template_preprocess_task_list(&$variables) {
function template_preprocess_maintenance_task_list(&$variables) {
$items = $variables['items'];
$active = $variables['active'];
......@@ -2306,9 +2306,9 @@ function drupal_common_theme() {
'render element' => 'page',
'template' => 'install-page',
),
'task_list' => array(
'maintenance_task_list' => array(
'variables' => array('items' => NULL, 'active' => NULL, 'variant' => NULL),
'template' => 'task-list',
'template' => 'maintenance-task-list',
),
'authorize_message' => array(
'variables' => array('message' => NULL, 'success' => TRUE),
......
......@@ -506,7 +506,7 @@ protected function updateTasksList($active = NULL) {
);
$task_list = array(
'#theme' => 'task_list',
'#theme' => 'maintenance_task_list',
'#items' => $tasks,
'#active' => $active,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment