You are here

public function BatUnitAutocompleteController::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a EntityAutocompleteController object.

Parameters

\Drupal\Core\Entity\EntityAutocompleteMatcher $matcher: The autocomplete matcher for entity references.

\Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value: The key value factory.

File

modules/bat_calendar_reference/src/Controller/BatUnitAutocompleteController.php, line 43

Class

BatUnitAutocompleteController
Defines a route controller for entity autocomplete form elements.

Namespace

Drupal\bat_calendar_reference\Controller

Code

public function __construct(EntityAutocompleteMatcher $matcher, KeyValueStoreInterface $key_value) {
  $this->matcher = $matcher;
  $this->keyValue = $key_value;
}