protected function DbUpdateController::updateTasksList in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Controller/DbUpdateController.php \Drupal\system\Controller\DbUpdateController::updateTasksList()
Provides the update task list render array.
Parameters
string $active: The active task. Can be one of 'requirements', 'info', 'selection', 'run', 'results'.
Return value
array A render array.
1 call to DbUpdateController::updateTasksList()
- DbUpdateController::handle in core/modules/ system/ src/ Controller/ DbUpdateController.php 
- Returns a database update page.
File
- core/modules/ system/ src/ Controller/ DbUpdateController.php, line 548 
- Contains \Drupal\system\Controller\DbUpdateController.
Class
- DbUpdateController
- Controller routines for database update routes.
Namespace
Drupal\system\ControllerCode
protected function updateTasksList($active = NULL) {
  // Default list of tasks.
  $tasks = array(
    'requirements' => $this
      ->t('Verify requirements'),
    'info' => $this
      ->t('Overview'),
    'selection' => $this
      ->t('Review updates'),
    'run' => $this
      ->t('Run updates'),
    'results' => $this
      ->t('Review log'),
  );
  $task_list = array(
    '#theme' => 'maintenance_task_list',
    '#items' => $tasks,
    '#active' => $active,
  );
  return $task_list;
}