ContextAwareVariantInterface::setContexts

public ContextAwareVariantInterface::setContexts(array $contexts)

Sets the context values for this display variant.

Parameters

\Drupal\Component\Plugin\Context\ContextInterface[] $contexts: An array of contexts, keyed by context name.

Return value

$this

File

core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php, line 26

Class

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

Namespace

Drupal\Core\Display

Code

public function setContexts(array $contexts);
doc_Drupal
2016-10-29 08:58:41
Comments
Leave a Comment

Please login to continue.