You are here

public function NodePreviewForm::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Form/NodePreviewForm.php \Drupal\node\Form\NodePreviewForm::__construct()

Constructs a new NodePreviewForm.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

File

core/modules/node/src/Form/NodePreviewForm.php, line 53
Contains \Drupal\node\Form\NodePreviewForm.

Class

NodePreviewForm
Contains a form for switching the view mode of a node during preview.

Namespace

Drupal\node\Form

Code

public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory) {
  $this->entityManager = $entity_manager;
  $this->configFactory = $config_factory;
}