You are here

public function ExecutionMetadataState::removeDataDefinition in Rules 8.3

Removes a data definition from the metadata state.

Parameters

string $name: Variable name of the data definition to be removed.

Return value

$this

Overrides ExecutionMetadataStateInterface::removeDataDefinition

File

src/Context/ExecutionMetadataState.php, line 78

Class

ExecutionMetadataState
The state used during configuration time holding data definitions.

Namespace

Drupal\rules\Context

Code

public function removeDataDefinition($name) {
  if (array_key_exists($name, $this->dataDefinitions)) {
    unset($this->dataDefinitions[$name]);
  }
  return $this;
}