function 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\AccessCode
public function setNodeRevisionAccessCheck(NodeRevisionAccessCheck $node_revision_access_check) {
$this->nodeRevisionAccessCheck = $node_revision_access_check;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.