public NodeRevisionAccessCheck::__construct(EntityManagerInterface $entity_manager)
Constructs a new NodeRevisionAccessCheck.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity 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(EntityManagerInterface $entity_manager) { $this->nodeStorage = $entity_manager->getStorage('node'); $this->nodeAccess = $entity_manager->getAccessControlHandler('node'); }
Please login to continue.