You are here

public function EntityEmbedDisplayBase::setContextValue in Entity Embed 8

Sets the value for a defined context.

Parameters

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

mixed $value: The value to set the context to. The value has to validate against the provided context definition.

File

src/EntityEmbedDisplay/EntityEmbedDisplayBase.php, line 216

Class

EntityEmbedDisplayBase
Defines a base Entity Embed Display implementation.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function setContextValue($name, $value) {
  $this->context[$name] = $value;
}