Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinition().
Overrides DiscoveryInterface::getDefinition
public function getDefinition($plugin_id) {
list($base_plugin_id, $derivative_id) = $this
->decodePluginId($plugin_id);
$plugin_definition = $this->decorated
->getDefinition($base_plugin_id);
if (isset($plugin_definition)) {
$derivative_fetcher = $this
->getDerivativeFetcher($base_plugin_id, $plugin_definition);
if ($derivative_fetcher) {
$plugin_definition = $derivative_fetcher
->getDerivativeDefinition($derivative_id, $plugin_definition);
}
}
return $plugin_definition;
}