You are here

public function DiscoveryTrait::getDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::getDefinition()
  2. 9 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

DiscoveryTrait

Namespace

Drupal\Component\Plugin\Discovery

Code

public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
  $definitions = $this
    ->getDefinitions();
  return $this
    ->doGetDefinition($definitions, $plugin_id, $exception_on_invalid);
}