You are here

public function SuggesterInterface::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.

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

File

src/Suggester/SuggesterInterface.php, line 40

Class

SuggesterInterface
Represents a plugin for creating autocomplete suggestions.

Namespace

Drupal\search_api_autocomplete\Suggester

Code

public function alterAutocompleteElement(array &$element);