You are here

public function NodePreviewAccessCheck::__construct in Zircon Profile 8

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

Constructs a EntityCreateAccessCheck object.

Parameters

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

File

core/modules/node/src/Access/NodePreviewAccessCheck.php, line 35
Contains \Drupal\node\Access\NodePreviewAccessCheck.

Class

NodePreviewAccessCheck
Determines access to node previews.

Namespace

Drupal\node\Access

Code

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