public function EntityAutocompleteController::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\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\ControllerCode
public function __construct(EntityAutocompleteMatcherInterface $matcher, KeyValueStoreInterface $key_value) {
$this->matcher = $matcher;
$this->keyValue = $key_value;
}