You are here

public function NodeRevisionAccessCheck::__construct in Zircon Profile 8

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

Constructs a new NodeRevisionAccessCheck.

Parameters

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

File

core/modules/node/src/Access/NodeRevisionAccessCheck.php, line 51
Contains \Drupal\node\Access\NodeRevisionAccessCheck.

Class

NodeRevisionAccessCheck
Provides an access checker for node revisions.

Namespace

Drupal\node\Access

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->nodeStorage = $entity_manager
    ->getStorage('node');
  $this->nodeAccess = $entity_manager
    ->getAccessControlHandler('node');
}