You are here

public function PluginManagerBase::getDefinitions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/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

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