Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContextAwareVariantInterface.php

function ContextAwareVariantInterface::setContexts

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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal