public function DefaultPluginManager::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/ Core/ Plugin/ DefaultPluginManager.php, line 163 - Contains \Drupal\Core\Plugin\DefaultPluginManager.
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
public function getDefinitions() {
$definitions = $this
->getCachedDefinitions();
if (!isset($definitions)) {
$definitions = $this
->findDefinitions();
$this
->setCachedDefinitions($definitions);
}
return $definitions;
}