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;
}
doc_Drupal
2016-10-29 09:06:11
Comments
Leave a Comment

Please login to continue.