public EntityAutocompleteController::__construct(EntityAutocompleteMatcher $matcher, KeyValueStoreInterface $key_value)
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 44
Class
- EntityAutocompleteController
- Defines a route controller for entity autocomplete form elements.
Namespace
Drupal\system\Controller
Code
public function __construct(EntityAutocompleteMatcher $matcher, KeyValueStoreInterface $key_value) { $this->matcher = $matcher; $this->keyValue = $key_value; }
Please login to continue.