public function NodeRevisionAccessCheck::access in Multiversion 8.2
Checks routing access for the node revision.
Parameters
\Symfony\Component\Routing\Route $route: The route to check against.
\Drupal\Core\Session\AccountInterface $account: The currently logged in account.
int $node_revision: (optional) The node revision ID. If not specified, but $node is, access is checked for that object's revision.
\Drupal\node\NodeInterface $node: (optional) A node object. Used for checking access to a node's default revision when $node_revision is unspecified. Ignored when $node_revision is specified. If neither $node_revision nor $node are specified, then access is denied.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
Overrides NodeRevisionAccessCheck::access
File
- src/
Access/ NodeRevisionAccessCheck.php, line 13
Class
Namespace
Drupal\multiversion\AccessCode
public function access(Route $route, AccountInterface $account, $node_revision = NULL, NodeInterface $node = NULL) {
return AccessResult::forbidden('Multiversion does not support reverting revisions.');
}