function NodeRevisionAccessCheck::__construct
Same name in other branches
- 9 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\AccessCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->nodeStorage = $entity_type_manager->getStorage('node');
$this->nodeAccess = $entity_type_manager->getAccessControlHandler('node');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.