You are here

public function PluginManager::getDefinitions in Express 8

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()

3 calls to PluginManager::getDefinitions()
PluginManager::getDefinitionsLike in themes/contrib/bootstrap/src/Plugin/PluginManager.php
Retrieves all definitions where the plugin ID matches a certain criteria.
SettingManager::getDefinitions in themes/contrib/bootstrap/src/Plugin/SettingManager.php
Gets the definition of all plugins for this type.
UpdateManager::getDefinitions in themes/contrib/bootstrap/src/Plugin/UpdateManager.php
Gets the definition of all plugins for this type.
2 methods override PluginManager::getDefinitions()
SettingManager::getDefinitions in themes/contrib/bootstrap/src/Plugin/SettingManager.php
Gets the definition of all plugins for this type.
UpdateManager::getDefinitions in themes/contrib/bootstrap/src/Plugin/UpdateManager.php
Gets the definition of all plugins for this type.

File

themes/contrib/bootstrap/src/Plugin/PluginManager.php, line 104
Contains \Drupal\bootstrap\Plugin\PluginManager.

Class

PluginManager
Base class for Bootstrap plugin managers.

Namespace

Drupal\bootstrap\Plugin

Code

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