public function DiscoveryTrait::getDefinition in Plug 7
1 call to DiscoveryTrait::getDefinition()
- DiscoveryTrait::hasDefinition in lib/
Drupal/ Component/ Plugin/ Discovery/ DiscoveryTrait.php
3 methods override DiscoveryTrait::getDefinition()
- DerivativeDiscoveryDecorator::getDefinition in lib/
Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php - DiscoveryCachedTrait::getDefinition in lib/
Drupal/ Component/ Plugin/ Discovery/ DiscoveryCachedTrait.php - PluginManagerBase::getDefinition in lib/
Drupal/ Component/ Plugin/ PluginManagerBase.php - Gets a specific plugin definition.
File
- 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);
}