You are here

public function ContextAwareVariantInterface::getContexts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 method overrides ContextAwareVariantInterface::getContexts()
TestDisplayVariant::getContexts in core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php
Gets the contexts.

File

core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php, line 21
Contains \Drupal\Core\Display\ContextAwareVariantInterface.

Class

ContextAwareVariantInterface
Provides an interface for variant plugins that are context-aware.

Namespace

Drupal\Core\Display

Code

public function getContexts();