class NodeRevisionAccessCheck in Multiversion 8.2
Same name and namespace in other branches
- 8 src/Access/NodeRevisionAccessCheck.php \Drupal\multiversion\Access\NodeRevisionAccessCheck
Hierarchy
- class \Drupal\node\Access\NodeRevisionAccessCheck implements AccessInterface
- class \Drupal\multiversion\Access\NodeRevisionAccessCheck
Expanded class hierarchy of NodeRevisionAccessCheck
File
- src/
Access/ NodeRevisionAccessCheck.php, line 11
Namespace
Drupal\multiversion\AccessView source
class NodeRevisionAccessCheck extends CoreNodeRevisionAccessCheck {
public function access(Route $route, AccountInterface $account, $node_revision = NULL, NodeInterface $node = NULL) {
return AccessResult::forbidden('Multiversion does not support reverting revisions.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodeRevisionAccessCheck:: |
protected | property | A static cache of access checks. | |
NodeRevisionAccessCheck:: |
protected | property | The node access control handler. | |
NodeRevisionAccessCheck:: |
protected | property | The node storage. | |
NodeRevisionAccessCheck:: |
public | function |
Checks routing access for the node revision. Overrides NodeRevisionAccessCheck:: |
|
NodeRevisionAccessCheck:: |
public | function | Checks node revision access. | |
NodeRevisionAccessCheck:: |
public | function | Constructs a new NodeRevisionAccessCheck. |