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

Breadcrumb

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

function 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\Display

Code

public function getContexts();

API Navigation

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