function public function UpdateManager::getUpdates

8.x-3.x UpdateManager.php public UpdateManager::getUpdates($private = FALSE)

Retrieves update plugins for the theme.

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.

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

Source src/Plugin/UpdateManager.php (line 99)

public function getUpdates($private = FALSE) {
  $updates = [];
  foreach ($this->getSchemas($private) as $schema) {
    $updates[$schema] = $this->createInstance($schema, ['theme' => $this->theme]);
  }
  return $updates;
}