Implements \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextDefinition().
Overrides ContextAwarePluginInterface::getContextDefinition
public function getContextDefinition($name) {
$definition = $this
->getPluginDefinition();
if (empty($definition['context'][$name])) {
throw new PluginException("The {$name} context is not a valid context.");
}
return $definition['context'][$name];
}