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