function install_tasks_to_display

Same name in other branches
  1. 7.x includes/install.core.inc \install_tasks_to_display()
  2. 9 core/includes/install.core.inc \install_tasks_to_display()
  3. 8.9.x core/includes/install.core.inc \install_tasks_to_display()
  4. 11.x core/includes/install.core.inc \install_tasks_to_display()

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 maintenance-task-list.html.twig.

Parameters

$install_state: An array of information about the current installation state.

Return value

array A list of tasks, with keys equal to the machine-readable task name and values equal to the name that should be displayed.

See also

maintenance-task-list.html.twig

1 call to install_tasks_to_display()
install_display_output in core/includes/install.core.inc
Displays themed installer output and ends the page request.

File

core/includes/install.core.inc, line 935

Code

function install_tasks_to_display($install_state) {
    $displayed_tasks = [];
    foreach (install_tasks($install_state) as $name => $task) {
        if ($task['display']) {
            $displayed_tasks[$name] = $task['display_name'];
        }
    }
    return $displayed_tasks;
}

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