public function EntityAutocompleteController::__construct in Opigno Learning path 8
Same name and namespace in other branches
- 3.x modules/opigno_alter_entity_autocomplete/src/Controller/EntityAutocompleteController.php \Drupal\opigno_alter_entity_autocomplete\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.
Overrides EntityAutocompleteController::__construct
File
- modules/
opigno_alter_entity_autocomplete/ src/ Controller/ EntityAutocompleteController.php, line 24
Class
- EntityAutocompleteController
- Class EntityAutocompleteController.
Namespace
Drupal\opigno_alter_entity_autocomplete\ControllerCode
public function __construct(EntityAutocompleteMatcherOverride $matcher, KeyValueStoreInterface $key_value) {
$this->matcher = $matcher;
$this->keyValue = $key_value;
}