public EntityFormBuilder::__construct(EntityManagerInterface $entity_manager, FormBuilderInterface $form_builder)
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 35
Class
- EntityFormBuilder
- Builds entity forms.
Namespace
Drupal\Core\Entity
Code
public function __construct(EntityManagerInterface $entity_manager, FormBuilderInterface $form_builder) { $this->entityManager = $entity_manager; $this->formBuilder = $form_builder; }
Please login to continue.