You are here

public function ExecutionMetadataStateInterface::setDataDefinition in Rules 8.3

Sets a data definition in the execution metadata state.

Parameters

string $name: Variable name of the data definition.

\Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition that represents the variable.

Return value

$this

1 method overrides ExecutionMetadataStateInterface::setDataDefinition()
ExecutionMetadataState::setDataDefinition in src/Context/ExecutionMetadataState.php
Sets a data definition in the execution metadata state.

File

src/Context/ExecutionMetadataStateInterface.php, line 39

Class

ExecutionMetadataStateInterface
The state used during configuration time holding data definitions.

Namespace

Drupal\rules\Context

Code

public function setDataDefinition($name, DataDefinitionInterface $definition);