public function EntityAutocomplete::__construct in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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
- modules/
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;
}