function EntityFormBuilder::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityFormBuilder.php \Drupal\Core\Entity\EntityFormBuilder::__construct()
- 10 core/lib/Drupal/Core/Entity/EntityFormBuilder.php \Drupal\Core\Entity\EntityFormBuilder::__construct()
- 9 core/lib/Drupal/Core/Entity/EntityFormBuilder.php \Drupal\Core\Entity\EntityFormBuilder::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityFormBuilder.php \Drupal\Core\Entity\EntityFormBuilder::__construct()
Constructs a new EntityFormBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\Core\Form\FormBuilderInterface $formBuilder: The form builder.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityFormBuilder.php, line 21
Class
- EntityFormBuilder
- Builds entity forms.
Namespace
Drupal\Core\EntityCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected FormBuilderInterface $formBuilder) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.