function public function PluginManager::getDefinitions

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

Class

PluginManager
Base class for Bootstrap plugin managers.

Namespace

Drupal\bootstrap\Plugin

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

public function getDefinitions($sorted = TRUE) {
  $definitions = parent::getDefinitions();
  if ($sorted) {
    uasort($definitions, ['\Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
  }
  return $definitions;
}