function ContextAwarePluginInterface::getContextDefinitions
Gets the context definitions of the plugin.
Return value
\Drupal\Component\Plugin\Context\ContextDefinitionInterface[] The array of context definitions, keyed by context name.
2 methods override ContextAwarePluginInterface::getContextDefinitions()
- ContextAwarePluginBase::getContextDefinitions in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Gets the context definitions of the plugin.
- ContextAwarePluginInterface::getContextDefinitions in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginInterface.php - Gets the context definitions of the plugin.
File
-
core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginInterface.php, line 23
Class
- ContextAwarePluginInterface
- Interface for defining context aware plugins.
Namespace
Drupal\Component\PluginCode
public function getContextDefinitions();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.