class NodeRevisionAccessCheck in Multiversion 8
Same name and namespace in other branches
- 8.2 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 9
Namespace
Drupal\multiversion\AccessView source
class NodeRevisionAccessCheck extends CoreNodeRevisionAccessCheck {
public function checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') {
if ($op == 'view' || $op == 'update') {
return parent::checkAccess($node, $account, $op);
}
else {
return FALSE;
}
}
}
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. | |
NodeRevisionAccessCheck:: |
public | function |
Checks node revision access. Overrides NodeRevisionAccessCheck:: |
|
NodeRevisionAccessCheck:: |
public | function | Constructs a new NodeRevisionAccessCheck. |