public function EntityAutocomplete::__construct in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/ajax_example/src/Form/EntityAutocomplete.php \Drupal\ajax_example\Form\EntityAutocomplete::__construct()
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
File
- ajax_example/
src/ Form/ EntityAutocomplete.php, line 56
Class
- EntityAutocomplete
- A simple autocomplete form which looks up usernames.
Namespace
Drupal\ajax_example\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}