You are here

public function HeartbeatAutocompleteController::__construct in Heartbeat 8

Constructs a EntityAutocompleteController object.

Parameters

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

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

Overrides EntityAutocompleteController::__construct

File

src/Controller/HeartbeatAutocompleteController.php, line 18

Class

HeartbeatAutocompleteController

Namespace

Drupal\heartbeat\Controller

Code

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