public function EntityFormBuilder::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityFormBuilder.php \Drupal\Core\Entity\EntityFormBuilder::__construct()
Constructs a new EntityFormBuilder.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityFormBuilder.php, line 40 - Contains \Drupal\Core\Entity\EntityFormBuilder.
Class
- EntityFormBuilder
- Builds entity forms.
Namespace
Drupal\Core\EntityCode
public function __construct(EntityManagerInterface $entity_manager, FormBuilderInterface $form_builder) {
$this->entityManager = $entity_manager;
$this->formBuilder = $form_builder;
}