public function ArrayPluginDefinitionDecorator::getContextDefinitions in Plugin 8.2
Gets the context definitions.
Return value
\Drupal\Component\Plugin\Context\ContextDefinitionInterface[] The array of context definitions, keyed by context name.
Overrides PluginContextDefinitionInterface::getContextDefinitions
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 233
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function getContextDefinitions() {
return isset($this->arrayDefinition['context']) ? $this->arrayDefinition['context'] : [];
}