function ExecutionStateInterface::setVariable

Sets a state variable based on its definition and value.

Parameters

string $name: The context variable name.

\Drupal\rules\Context\ContextDefinitionInterface $definition: The context definition of the variable.

mixed $value: The variable value.

Return value

$this

1 method overrides ExecutionStateInterface::setVariable()
ExecutionState::setVariable in src/Context/ExecutionState.php
Sets a state variable based on its definition and value.

File

src/Context/ExecutionStateInterface.php, line 24

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function setVariable($name, ContextDefinitionInterface $definition, $value);