function ContextAwarePluginInterface::getContextDefinitions

Same name in this branch
  1. 11.x core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinitions()
Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinitions()
  2. 9 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextDefinitions()
  3. 8.9.x core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinitions()
  4. 8.9.x core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextDefinitions()
  5. 10 core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinitions()
  6. 10 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\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.

1 method overrides ContextAwarePluginInterface::getContextDefinitions()
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\Plugin

Code

public function getContextDefinitions();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.