You are here

public function HtmlEntityFormController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/HtmlEntityFormController.php \Drupal\Core\Entity\HtmlEntityFormController::__construct()

Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.

Parameters

\Drupal\Core\Controller\ControllerResolverInterface $resolver: The controller resolver.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\Entity\EntityManagerInterface $manager: The entity manager.

Overrides FormController::__construct

File

core/lib/Drupal/Core/Entity/HtmlEntityFormController.php, line 37
Contains \Drupal\Core\Entity\HtmlEntityFormController.

Class

HtmlEntityFormController
Wrapping controller for entity forms that serve as the main page body.

Namespace

Drupal\Core\Entity

Code

public function __construct(ControllerResolverInterface $resolver, FormBuilderInterface $form_builder, EntityManagerInterface $manager) {
  parent::__construct($resolver, $form_builder);
  $this->entityManager = $manager;
}