public function ContextAwarePluginInterface::getContexts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContexts()
Gets the defined contexts.
Return value
array The set context objects.
Throws
\Drupal\Component\Plugin\Exception\PluginException If contexts are defined but not set.
1 method overrides ContextAwarePluginInterface::getContexts()
- ContextAwarePluginBase::getContexts in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Gets the defined contexts.
File
- core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginInterface.php, line 53 - Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.
Class
- ContextAwarePluginInterface
- Interface for defining context aware plugins.
Namespace
Drupal\Component\PluginCode
public function getContexts();