public function ContextAwarePluginBase::getContextDefinitions in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php \Drupal\Core\Plugin\ContextAwarePluginBase::getContextDefinitions()
- 8 core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php \Drupal\Component\Plugin\ContextAwarePluginBase::getContextDefinitions()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php \Drupal\Component\Plugin\ContextAwarePluginBase::getContextDefinitions()
Gets the context definitions of the plugin.
Return value
\Drupal\Component\Plugin\Context\ContextDefinitionInterface[] The array of context definitions, keyed by context name.
Overrides ContextAwarePluginInterface::getContextDefinitions
3 calls to ContextAwarePluginBase::getContextDefinitions()
- ContextAwarePluginBase::getContextDefinitions in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginBase.php - ContextAwarePluginBase::getContexts in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Gets the defined contexts.
- ContextAwarePluginBase::getContextValues in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Gets the values for all defined contexts.
1 method overrides ContextAwarePluginBase::getContextDefinitions()
- ContextAwarePluginBase::getContextDefinitions in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginBase.php
File
- core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php, line 73 - Contains \Drupal\Component\Plugin\ContextAwarePluginBase.
Class
- ContextAwarePluginBase
- Base class for plugins that are context aware.
Namespace
Drupal\Component\PluginCode
public function getContextDefinitions() {
$definition = $this
->getPluginDefinition();
return !empty($definition['context']) ? $definition['context'] : array();
}