public function DiscoveryTrait::getDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::getDefinition()
- 10 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 - Gets a specific plugin definition.
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);
}