public function EntityAutocompleteController::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\EntityAutocompleteController::__construct()
Constructs a EntityAutocompleteController object.
Parameters
\Drupal\Core\Entity\EntityAutocompleteMatcher $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 49 - Contains \Drupal\system\Controller\EntityAutocompleteController.
Class
- EntityAutocompleteController
- Defines a route controller for entity autocomplete form elements.
Namespace
Drupal\system\ControllerCode
public function __construct(EntityAutocompleteMatcher $matcher, KeyValueStoreInterface $key_value) {
$this->matcher = $matcher;
$this->keyValue = $key_value;
}