You are here

public function NodeRevisionAccessCheck::__construct in Drupal 9

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

Constructs a new NodeRevisionAccessCheck.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

core/modules/node/src/Access/NodeRevisionAccessCheck.php, line 46

Class

NodeRevisionAccessCheck
Provides an access checker for node revisions.

Namespace

Drupal\node\Access

Code

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