function ContextAwareVariantInterface::getContexts
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php \Drupal\Core\Display\ContextAwareVariantInterface::getContexts()
Gets the values for all defined contexts.
Return value
\Drupal\Component\Plugin\Context\ContextInterface[] An array of set contexts, keyed by context name.
File
-
core/
lib/ Drupal/ Core/ Display/ ContextAwareVariantInterface.php, line 16
Class
- ContextAwareVariantInterface
- Provides an interface for variant plugins that are context-aware.
Namespace
Drupal\Core\DisplayCode
public function getContexts();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.