public function ContactLink::access in Views (for Drupal 7) 8.3
Check whether current user has access to this handler.
Return value
boolean
Overrides Link::access
File
- lib/
Views/ contact/ Plugin/ views/ field/ ContactLink.php, line 35 - Definition of Views\contact\Plugin\views\field\ContactLink.
Class
- ContactLink
- A field that links to the user contact page, if access is permitted.
Namespace
Views\contact\Plugin\views\fieldCode
public function access() {
return user_access('access user contact forms');
}