function StaticDiscovery::getDefinitions
Overrides DiscoveryTrait::getDefinitions
2 calls to StaticDiscovery::getDefinitions()
- StaticDiscoveryDecorator::getDefinitions in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - Gets the definition of all plugins for this type.
- StaticDiscoveryDecorator::getDefinitions in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - Gets the definition of all plugins for this type.
1 method overrides StaticDiscovery::getDefinitions()
- StaticDiscoveryDecorator::getDefinitions in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - Gets the definition of all plugins for this type.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscovery.php, line 15
Class
- StaticDiscovery
- Allows plugin definitions to be manually registered.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function getDefinitions() {
if (!$this->definitions) {
$this->definitions = [];
}
return $this->definitions;
}