public function ExecutionState::getVariableValue in Rules 8.3
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.
Overrides ExecutionStateInterface::getVariableValue
File
- src/
Context/ ExecutionState.php, line 114
Class
- ExecutionState
- The rules execution state.
Namespace
Drupal\rules\ContextCode
public function getVariableValue($name) {
return $this
->getVariable($name)
->getValue();
}