public function NodeCloneFormController::__construct in Node clone 8
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.
\Drupal\node\Access\NodeAddAccessCheck $node_add_access: Node add access checker.
Overrides FormController::__construct
File
- src/
Controller/ NodeCloneFormController.php, line 51
Class
- NodeCloneFormController
- Wrapping controller for entity forms that serve as the main page body.
Namespace
Drupal\node_clone\ControllerCode
public function __construct(ControllerResolverInterface $resolver, FormBuilderInterface $form_builder, EntityManagerInterface $manager, NodeAddAccessCheck $node_add_access) {
parent::__construct($resolver, $form_builder);
$this->entityManager = $manager;
$this->nodeAddAccessCheck = $node_add_access;
}