function ExecutionStateInterface::fetchDataByPropertyPath

Returns a value as specified in the selector.

Parameters

string $property_path: The property path string starting with a variable name; e.g., "node.uid.entity.mail.value".

string $langcode: (optional) The language code used to get the argument value if the argument value should be translated. Defaults to NULL.

Return value

\Drupal\Core\TypedData\TypedDataInterface The variable wrapped as typed data.

Throws

\Drupal\rules\Exception\EvaluationException Throws an EvaluationException in case the selector cannot be applied.

1 method overrides ExecutionStateInterface::fetchDataByPropertyPath()
ExecutionState::fetchDataByPropertyPath in src/Context/ExecutionState.php
Returns a value as specified in the selector.

File

src/Context/ExecutionStateInterface.php, line 105

Class

ExecutionStateInterface
Defines an interface for the execution context state.

Namespace

Drupal\rules\Context

Code

public function fetchDataByPropertyPath($property_path, $langcode = NULL);