public function StaticDiscoveryDecorator::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 StaticDiscovery::getDefinitions
File
- lib/
Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php, line 57 - Contains \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator.
Class
- StaticDiscoveryDecorator
- A decorator that allows manual registration of undiscoverable definitions.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function getDefinitions() {
if (isset($this->registerDefinitions)) {
call_user_func($this->registerDefinitions);
}
$this->definitions += $this->decorated
->getDefinitions();
return parent::getDefinitions();
}