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

Breadcrumb

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

function ContextAwarePluginInterface::getContexts

Gets the defined contexts.

Return value

array The set context objects.

Throws

\Drupal\Component\Plugin\Exception\ContextException If contexts are defined but not set.

File

core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 48

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function getContexts();
RSS feed
Powered by Drupal