public function LinkDelete::access in Views (for Drupal 7) 8.3
Check whether current user has access to this handler.
Return value
boolean
Overrides HandlerBase::access
File
- lib/
Views/ comment/ Plugin/ views/ field/ LinkDelete.php, line 24 - Definition of Views\comment\Plugin\views\field\LinkDelete.
Class
- LinkDelete
- Field handler to present a link to delete a node.
Namespace
Views\comment\Plugin\views\fieldCode
public function access() {
//needs permission to administer comments in general
return user_access('administer comments');
}