function StaticDiscovery::getDefinitions
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::getDefinitions()
- 8.9.x core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::getDefinitions()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::getDefinitions()
Overrides DiscoveryTrait::getDefinitions
1 call to StaticDiscovery::getDefinitions()
- StaticDiscoveryDecorator::getDefinitions in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - Gets the definition of all plugins for this type.
2 methods override StaticDiscovery::getDefinitions()
- StaticDiscoveryDecorator::getDefinitions in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscoveryDecorator.php - Gets the definition of all plugins for this type.
- StaticDiscoveryTestDecoratedClass::getDefinitions in core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ StaticDiscoveryDecoratorTest.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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.