NodeRevisionAccessCheck::__construct

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');
}
doc_Drupal
2016-10-29 09:31:05
Comments
Leave a Comment

Please login to continue.