public function ExecutionMetadataState::hasDataDefinition in Rules 8.3
Checks if the variable with the given name is present in the state.
Parameters
string $name: The variable name.
Return value
bool TRUE if the state has that variable, FALSE otherwise.
Overrides ExecutionMetadataStateInterface::hasDataDefinition
File
- src/
Context/ ExecutionMetadataState.php, line 71
Class
- ExecutionMetadataState
- The state used during configuration time holding data definitions.
Namespace
Drupal\rules\ContextCode
public function hasDataDefinition($name) {
return array_key_exists($name, $this->dataDefinitions);
}