function public function UpdateManager::getDefinitions

8.x-3.x UpdateManager.php public UpdateManager::getDefinitions($sorted = TRUE)

Overrides PluginManager::getDefinitions

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

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

public function getDefinitions($sorted = TRUE) {
  $definitions = parent::getDefinitions();

  // Sort by the schema number (a.k.a. plugin ID).
  if ($sorted) {
    uasort($definitions, function($a, $b) {
      return SortArray::sortByKeyInt($a, $b, 'id');
    });
  }

  return $definitions;
}