You are here

public function BatEventTypeAutocompleteController::__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/BatEventTypeAutocompleteController.php, line 43

Class

BatEventTypeAutocompleteController
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;
}