function ExecutionStateInterface::getVariable

Gets a variable.

Parameters

string $name: The name of the variable to return.

Return value

\Drupal\Core\TypedData\TypedDataInterface The variable wrapped as typed data.

Throws

\Drupal\rules\Exception\EvaluationException Throws an EvaluationException if the variable does not exist in the state.

1 method overrides ExecutionStateInterface::getVariable()
ExecutionState::getVariable in src/Context/ExecutionState.php
Gets a variable.

File

src/Context/ExecutionStateInterface.php, line 51

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function getVariable($name);