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.
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);