public function NameAutocompleteController::__construct in Name Field 8
Constructs an NameAutocompleteController object.
Parameters
\Drupal\name\NameAutocomplete $name_autocomplete: The name autocomplete helper class to find matching name values.
\Drupal\Core\Entity\EntityFieldManager $entityFieldManager: The entity field manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity field manager.
File
- src/
Controller/ NameAutocompleteController.php, line 50
Class
- NameAutocompleteController
- Controller routines for name autocompletion routes.
Namespace
Drupal\name\ControllerCode
public function __construct(NameAutocomplete $name_autocomplete, EntityFieldManager $entityFieldManager, EntityTypeManagerInterface $entityTypeManager) {
$this->nameAutocomplete = $name_autocomplete;
$this->entityFieldManager = $entityFieldManager;
$this->entityTypeManager = $entityTypeManager;
}