You are here

public function SuggesterPluginBase::alterAutocompleteElement in Search API Autocomplete 8

Alters an autocomplete element that should use this suggester.

This method is usually not needed by suggester plugins, but can be implemented when necessary to, for example, pass additional information to the autocomplete AJAX callback.

Parameters

array $element: The render array of the autocomplete element.

Overrides SuggesterInterface::alterAutocompleteElement

1 method overrides SuggesterPluginBase::alterAutocompleteElement()
CustomScript::alterAutocompleteElement in src/Plugin/search_api_autocomplete/suggester/CustomScript.php
Alters an autocomplete element that should use this suggester.

File

src/Suggester/SuggesterPluginBase.php, line 42

Class

SuggesterPluginBase
Provides a base class for suggester plugins.

Namespace

Drupal\search_api_autocomplete\Suggester

Code

public function alterAutocompleteElement(array &$element) {
}