You are here

public function AutocompleteHelperInterface::alterElement in Search API Autocomplete 8

Alters a textfield form element to use autocompletion.

Parameters

array $element: The altered element.

\Drupal\search_api_autocomplete\SearchInterface $search: The autocomplete search.

array $data: (optional) Additional data to pass to the autocomplete callback.

1 method overrides AutocompleteHelperInterface::alterElement()
AutocompleteHelper::alterElement in src/Utility/AutocompleteHelper.php
Alters a textfield form element to use autocompletion.

File

src/Utility/AutocompleteHelperInterface.php, line 39

Class

AutocompleteHelperInterface
Provides an interface for the autocomplete helper service.

Namespace

Drupal\search_api_autocomplete\Utility

Code

public function alterElement(array &$element, SearchInterface $search, array $data = []);