function DiscoveryTrait::getDefinition
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::getDefinition()
- 8.9.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::getDefinition()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::getDefinition()
1 call to DiscoveryTrait::getDefinition()
- DiscoveryTrait::hasDefinition in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DiscoveryTrait.php
3 methods override DiscoveryTrait::getDefinition()
- DerivativeDiscoveryDecorator::getDefinition in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php - DiscoveryCachedTrait::getDefinition in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DiscoveryCachedTrait.php - PluginManagerBase::getDefinition in core/
lib/ Drupal/ Component/ Plugin/ PluginManagerBase.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DiscoveryTrait.php, line 20
Class
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
$definitions = $this->getDefinitions();
return $this->doGetDefinition($definitions, $plugin_id, $exception_on_invalid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.