function ExecutionMetadataState::setDataDefinition

Overrides ExecutionMetadataStateInterface::setDataDefinition

1 call to ExecutionMetadataState::setDataDefinition()
ExecutionMetadataState::__construct in src/Context/ExecutionMetadataState.php
Constructs the object.

File

src/Context/ExecutionMetadataState.php, line 53

Class

ExecutionMetadataState
The state used during configuration time holding data definitions.

Namespace

Drupal\rules\Context

Code

public function setDataDefinition($name, DataDefinitionInterface $definition) {
    $this->dataDefinitions[$name] = $definition;
    return $this;
}