You are here

public function AutocompleteController::__construct in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/Controller/AutocompleteController.php \Drupal\linkit\Controller\AutocompleteController::__construct()

Constructs a EntityAutocompleteController object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $linkit_profile_storage: The linkit profile storage service.

\Drupal\linkit\SuggestionManager $suggestionManager: The suggestion service.

File

src/Controller/AutocompleteController.php, line 46

Class

AutocompleteController
Returns responses for linkit autocomplete routes.

Namespace

Drupal\linkit\Controller

Code

public function __construct(EntityStorageInterface $linkit_profile_storage, SuggestionManager $suggestionManager) {
  $this->linkitProfileStorage = $linkit_profile_storage;
  $this->suggestionManager = $suggestionManager;
}