public function ContextAwareVariantInterface::getContexts
public 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();
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Display!ContextAwareVariantInterface.php/function/ContextAwareVariantInterface::getContexts/8.1.x