You are here

public function AutocompleteController::__construct in Search API Autocomplete 8

Creates a new AutocompleteController instance.

Parameters

\Drupal\search_api_autocomplete\Utility\AutocompleteHelperInterface $autocomplete_helper: The autocomplete helper service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Component\Transliteration\TransliterationInterface $transliterator: The transliterator.

File

src/Controller/AutocompleteController.php, line 52

Class

AutocompleteController
Provides a controller for autocompletion.

Namespace

Drupal\search_api_autocomplete\Controller

Code

public function __construct(AutocompleteHelperInterface $autocomplete_helper, RendererInterface $renderer, TransliterationInterface $transliterator) {
  $this->autocompleteHelper = $autocomplete_helper;
  $this->renderer = $renderer;
  $this->transliterator = $transliterator;
}