function ExecutionStateInterface::setVariableData

Sets a state variable with some typed data object.

Parameters

string $name: The variable name.

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

Return value

$this

1 method overrides ExecutionStateInterface::setVariableData()
ExecutionState::setVariableData in src/Context/ExecutionState.php
Sets a state variable with some typed data object.

File

src/Context/ExecutionStateInterface.php, line 36

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function setVariableData($name, TypedDataInterface $data);