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);
Please login to continue.