public function UpdateController::updateStatus

Returns a page about the update status of projects.

Return value

array A build array with the update status of projects.

1 string reference to 'UpdateController::updateStatus'
update.routing.yml in drupal/core/modules/update/update.routing.yml
drupal/core/modules/update/update.routing.yml

File

drupal/core/modules/update/lib/Drupal/update/Controller/UpdateController.php, line 51
Contains \Drupal\update\Controller\UpdateController.

Class

UpdateController
Controller routines for update routes.

Namespace

Drupal\update\Controller

Code

public function updateStatus() {
  $build = array(
    '#theme' => 'update_report',
  );
  if ($available = update_get_available(TRUE)) {
    $this->moduleHandler
      ->loadInclude('update', 'compare.inc');
    $build['#data'] = update_calculate_project_data($available);
  }
  else {
    $build['#data'] = _update_no_data();
  }
  return $build;
}