public function RevisionLinkDelete::access in Views (for Drupal 7) 8.3
Check whether current user has access to this handler.
Return value
boolean
Overrides RevisionLink::access
File
- lib/
Views/ node/ Plugin/ views/ field/ RevisionLinkDelete.php, line 25 - Definition of Views\node\Plugin\views\field\RevisionLinkDelete.
Class
- RevisionLinkDelete
- Field handler to present link to delete a node revision.
Namespace
Views\node\Plugin\views\fieldCode
public function access() {
return user_access('delete revisions') || user_access('administer nodes');
}