public function EntityFormBuilder::__construct

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFormBuilder.php/function/EntityFormBuilder::__construct/8.1.x