public function EntityAutocompleteController::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\EntityAutocompleteController::__construct()
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.
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;
}