public function DiscoveryTrait::getDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 25 - Contains \Drupal\Component\Plugin\Discovery\DiscoveryTrait.
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);
}