You are here

public function QuickNodeCloneNodeController::__construct in Quick Node Clone 8

Constructs a NodeController object.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\quick_node_clone\Entity\QuickNodeCloneEntityFormBuilder $entity_form_builder: The entity form builder.

Overrides NodeController::__construct

File

src/Controller/QuickNodeCloneNodeController.php, line 38

Class

QuickNodeCloneNodeController
Returns responses for Quick Node Clone Node routes.

Namespace

Drupal\quick_node_clone\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, RendererInterface $renderer, EntityRepositoryInterface $entity_repository, QuickNodeCloneEntityFormBuilder $entity_form_builder) {
  parent::__construct($date_formatter, $renderer, $entity_repository);
  $this->qncEntityFormBuilder = $entity_form_builder;
}