Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityAutocompleteController.php

function EntityAutocompleteController::__construct

Constructs an EntityAutocompleteController object.

Parameters

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

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

File

core/modules/system/src/Controller/EntityAutocompleteController.php, line 43

Class

EntityAutocompleteController
Defines a route controller for entity autocomplete form elements.

Namespace

Drupal\system\Controller

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal