You are here

protected function EntityAutocompleteController::setMatcher in Select 2 8

Set the entity autocomplete matcher.

Parameters

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

File

src/Controller/EntityAutocompleteController.php, line 41

Class

EntityAutocompleteController
Defines a route controller for entity autocomplete form elements.

Namespace

Drupal\select2\Controller

Code

protected function setMatcher(EntityAutocompleteMatcher $matcher) {
  $this->matcher = $matcher;
}