function protected function UpdateManager::sortDefinitions

8.x-3.x UpdateManager.php protected UpdateManager::sortDefinitions(array &$definitions)

Sorts the plugin definitions.

Parameters

array $definitions: The unsorted plugin definitions, passed by reference.

Overrides PluginManager::sortDefinitions

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

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

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