function ExecutionStateInterface::getVariableValue

Gets the value of a variable.

Parameters

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

Return value

mixed The variable value.

Throws

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

1 method overrides ExecutionStateInterface::getVariableValue()
ExecutionState::getVariableValue in src/Context/ExecutionState.php
Gets the value of a variable.

File

src/Context/ExecutionStateInterface.php, line 66

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function getVariableValue($name);