function protected function UpdateManager::getSchemas

8.x-3.x UpdateManager.php protected UpdateManager::getSchemas($private = FALSE)

Retrieves the update schema identifiers.

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

array An indexed array of schema identifiers.

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

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

protected function getSchemas($private = FALSE) {
  $definitions = $this->getDefinitions();

  // Remove private updates.
  if (!$private) {
    foreach ($definitions as $plugin_id => $definition) {
      if (!empty($definition['private'])) {
        unset($definitions[$plugin_id]);
      }
    }
  }

  return array_keys($definitions);
}