You are here

public function PluginManagerBase::getDefinitions in Service Container 7.2

Same name in this branch
  1. 7.2 src/Plugin/PluginManagerBase.php \Drupal\service_container\Plugin\PluginManagerBase::getDefinitions()
  2. 7.2 lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getDefinitions()
Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::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 DiscoveryTrait::getDefinitions

File

lib/Drupal/Component/Plugin/PluginManagerBase.php, line 69
Contains \Drupal\Component\Plugin\PluginManagerBase.

Class

PluginManagerBase
Base class for plugin managers.

Namespace

Drupal\Component\Plugin

Code

public function getDefinitions() {
  return $this
    ->getDiscovery()
    ->getDefinitions();
}