You are here

public function EntityAccessChecker::setNodeRevisionAccessCheck in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Access/EntityAccessChecker.php \Drupal\jsonapi\Access\EntityAccessChecker::setNodeRevisionAccessCheck()

Sets the node revision access check service.

This is only called when node module is installed.

Parameters

\Drupal\node\Access\NodeRevisionAccessCheck $node_revision_access_check: The node revision access check service.

File

core/modules/jsonapi/src/Access/EntityAccessChecker.php, line 123

Class

EntityAccessChecker
Checks access to entities.

Namespace

Drupal\jsonapi\Access

Code

public function setNodeRevisionAccessCheck(NodeRevisionAccessCheck $node_revision_access_check) {
  $this->nodeRevisionAccessCheck = $node_revision_access_check;
}