public function ProcessDecorator::getDefinition

Implements \Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition().

Overrides DiscoveryInterface::getDefinition

File

drupal/core/lib/Drupal/Component/Plugin/Discovery/ProcessDecorator.php, line 52
Contains \Drupal\Component\Plugin\Discovery\ProcessDecorator.

Class

ProcessDecorator
Allows custom processing of the discovered definition.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function getDefinition($plugin_id) {
  $definitions = $this
    ->getDefinitions();
  if (isset($definitions[$plugin_id])) {
    return $definitions[$plugin_id];
  }
}