public function YamlDiscoveryDecorator::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 YamlDiscovery::getDefinitions
File
- lib/
Drupal/ Core/ Plugin/ Discovery/ YamlDiscoveryDecorator.php, line 47 - Contains \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator.
Class
- YamlDiscoveryDecorator
- Enables YAML discovery for plugin definitions.
Namespace
Drupal\Core\Plugin\DiscoveryCode
public function getDefinitions() {
return parent::getDefinitions() + $this->decorated
->getDefinitions();
}