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

Breadcrumb

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

function ContextAwarePluginInterface::getContextValue

Gets the value for a defined context.

Parameters

string $name: The name of the context in the plugin configuration.

Return value

mixed The currently set context value.

Throws

\Drupal\Component\Plugin\Exception\ContextException If the requested context is not set.

File

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

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function getContextValue($name);
RSS feed
Powered by Drupal