You are here

public function UpdateManager::getPendingUpdates in Express 8

Retrieves any pending updates.

Parameters

bool $private: Toggle determining whether or not to include private updates, intended for only the theme that created it. Defaults to: FALSE.

Return value

\Drupal\bootstrap\Plugin\Update\UpdateInterface[] An associative array containing update objects, keyed by their version.

File

themes/contrib/bootstrap/src/Plugin/UpdateManager.php, line 81
Contains \Drupal\bootstrap\Plugin\UpdateManager.

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

Code

public function getPendingUpdates($private = FALSE) {
  $pending = [];
  $installed = $this->theme
    ->getSetting('schemas', []);
  foreach ($this
    ->getUpdates($private) as $version => $update) {
    if ($version > $installed) {
      $pending[$version] = $update;
    }
  }
  return $pending;
}