function protected function PluginManager::sortDefinitions

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

Sorts the plugin definitions.

Parameters

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

Class

PluginManager
Base class for Bootstrap plugin managers.

Namespace

Drupal\bootstrap\Plugin

Source src/Plugin/PluginManager.php (line 142)

protected function sortDefinitions(array &$definitions) {
  uasort($definitions, ['\Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
}