public function YamlDiscoveryDecorator::getDefinitions in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator::getDefinitions()
- 9 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator::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 YamlDiscovery::getDefinitions
See also
\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()
File
- core/
lib/ Drupal/ Core/ Plugin/ Discovery/ YamlDiscoveryDecorator.php, line 42
Class
- YamlDiscoveryDecorator
- Enables YAML discovery for plugin definitions.
Namespace
Drupal\Core\Plugin\DiscoveryCode
public function getDefinitions() {
return parent::getDefinitions() + $this->decorated
->getDefinitions();
}