You are here

public function PluginManagerBase::getDefinitions in Plug 7

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