public function NodePreviewForm::__construct in Zircon Profile 8
Same name and namespace in other branches
- 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\FormCode
public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory) {
$this->entityManager = $entity_manager;
$this->configFactory = $config_factory;
}