You are here

public function ConfigProviderManager::getDefinitions in Configuration Provider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ConfigProviderManager.php \Drupal\config_provider\Plugin\ConfigProviderManager::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DefaultPluginManager::getDefinitions

See also

\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()

File

src/Plugin/ConfigProviderManager.php, line 35

Class

ConfigProviderManager
Provides the Configuration provider plugin manager.

Namespace

Drupal\config_provider\Plugin

Code

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

  // Sort definitions by weight.
  uasort($definitions, '\\Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
  return $definitions;
}