You are here

public function ExecutionMetadataStateInterface::fetchDefinitionByPropertyPath in Rules 8.3

Applies a data selector and returns the corresponding data definition.

Parameters

string $property_path: The property path, example: "node.title.value".

string $langcode: The language code.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface A data definition if the property path could be applied.

Throws

\Drupal\rules\Exception\IntegrityException Thrown if the property path is invalid.

1 method overrides ExecutionMetadataStateInterface::fetchDefinitionByPropertyPath()
ExecutionMetadataState::fetchDefinitionByPropertyPath in src/Context/ExecutionMetadataState.php
Applies a data selector and returns the corresponding data definition.

File

src/Context/ExecutionMetadataStateInterface.php, line 87

Class

ExecutionMetadataStateInterface
The state used during configuration time holding data definitions.

Namespace

Drupal\rules\Context

Code

public function fetchDefinitionByPropertyPath($property_path, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED);