public function DiscoveryInterface::getDefinition

Gets a specific plugin definition.

Parameters

string $plugin_id: A plugin id.

Return value

array|null A plugin definition, or NULL if no definition was found for $plugin_id.

10 methods override DiscoveryInterface::getDefinition()
AlterDecorator::getDefinition in drupal/core/lib/Drupal/Core/Plugin/Discovery/AlterDecorator.php
Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinition().
AnnotatedClassDiscovery::getDefinition in drupal/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinition().
CacheDecorator::getDefinition in drupal/core/lib/Drupal/Core/Plugin/Discovery/CacheDecorator.php
Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition().
DerivativeDiscoveryDecorator::getDefinition in drupal/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php
Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinition().
HookDiscovery::getDefinition in drupal/core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition().

... See full list

File

drupal/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php, line 25
Definition of Drupal\Component\Plugin\Discovery\DiscoveryInterface.

Class

DiscoveryInterface
An interface defining the minimum requirements of building a plugin discovery component.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function getDefinition($plugin_id);