function install_tasks_to_display
install_tasks_to_display($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 maintenance-task-list.html.twig.
Parameters
$install_state: An array of information about the current installation state.
Return value
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
File
- core/includes/install.core.inc, line 855
- API functions for installing Drupal.
Code
function install_tasks_to_display($install_state) { $displayed_tasks = array(); foreach (install_tasks($install_state) as $name => $task) { if ($task['display']) { $displayed_tasks[$name] = $task['display_name']; } } return $displayed_tasks; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.core.inc/function/install_tasks_to_display/8.1.x