You are here

public function AutocompleteController::__construct in Linkit 8.4

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

Constructs a EntityAutocompleteController object.

Parameters

ResultManager $resultManager: The result service.

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

File

src/Controller/AutocompleteController.php, line 49
Contains \Drupal\linkit\Controller\AutocompleteController.

Class

AutocompleteController

Namespace

Drupal\linkit\Controller

Code

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