DbUpdateController::getModuleUpdates

protected DbUpdateController::getModuleUpdates()

Retrieves module updates.

Return value

array The module updates that can be performed.

File

core/modules/system/src/Controller/DbUpdateController.php, line 695

Class

DbUpdateController
Controller routines for database update routes.

Namespace

Drupal\system\Controller

Code

protected function getModuleUpdates() {
  $return = array();
  $updates = update_get_update_list();
  foreach ($updates as $module => $update) {
    $return[$module] = $update['start'];
  }

  return $return;
}
doc_Drupal
2016-10-29 09:01:23
Comments
Leave a Comment

Please login to continue.