Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinition().
Overrides DiscoveryInterface::getDefinition
File
- drupal/core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php, line 26
- Definition of Drupal\Component\Plugin\Discovery\StaticDiscovery.
Class
- StaticDiscovery
- A discovery mechanism that allows plugin definitions to be manually
registered rather than actively discovered.
Namespace
Drupal\Component\Plugin\Discovery
Code
public function getDefinition($base_plugin_id) {
return isset($this->definitions[$base_plugin_id]) ? $this->definitions[$base_plugin_id] : NULL;
}