You are here

public function DataFetcherInterface::autocompletePropertyPath in Typed Data API enhancements 8

Provides autocomplete suggestions for an incomplete property path.

Parameters

\Drupal\Core\TypedData\DataDefinitionInterface[] $data_definitions: A map of available data definitions that should be seareched. The array keys are the first part of the property path.

string $partial_property_path: The partial property path, example: "node.uid.ent".

Return value

array[] A list of autocomplete suggestions - valid property paths for one of the provided data definitions. Each entry is an array with the following keys:

  • value: the data selector property path.
  • label: the human readable label suggestion.
1 method overrides DataFetcherInterface::autocompletePropertyPath()
DataFetcher::autocompletePropertyPath in src/DataFetcher.php
Provides autocomplete suggestions for an incomplete property path.

File

src/DataFetcherInterface.php, line 120

Class

DataFetcherInterface
Interface for the DataFetcher service.

Namespace

Drupal\typed_data

Code

public function autocompletePropertyPath(array $data_definitions, $partial_property_path);