function ExecutionStateInterface::hasVariable

Checks if a variable exists by name in the execution state.

Parameters

string $name: The variable name.

Return value

bool TRUE if the variable exists, FALSE otherwise.

1 method overrides ExecutionStateInterface::hasVariable()
ExecutionState::hasVariable in src/Context/ExecutionState.php
Checks if a variable exists by name in the execution state.

File

src/Context/ExecutionStateInterface.php, line 77

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function hasVariable($name);