public function HandlerBase::access in Views (for Drupal 7) 8.3
Check whether current user has access to this handler.
Return value
boolean
7 methods override HandlerBase::access()
- Field::access in lib/
Views/ field/ Plugin/ views/ field/ Field.php - Check whether current user has access to this handler.
- Link::access in lib/
Views/ user/ Plugin/ views/ field/ Link.php - Check whether current user has access to this handler.
- LinkApprove::access in lib/
Views/ comment/ Plugin/ views/ field/ LinkApprove.php - Check whether current user has access to this handler.
- LinkDelete::access in lib/
Views/ comment/ Plugin/ views/ field/ LinkDelete.php - Check whether current user has access to this handler.
- LinkEdit::access in lib/
Views/ locale/ Plugin/ views/ field/ LinkEdit.php - Check whether current user has access to this handler.
File
- lib/
Drupal/ views/ Plugin/ views/ HandlerBase.php, line 467 - Definition of Drupal\views\Plugin\views\HandlerBase.
Class
Namespace
Drupal\views\Plugin\viewsCode
public function access() {
if (isset($this->definition['access callback']) && function_exists($this->definition['access callback'])) {
if (isset($this->definition['access arguments']) && is_array($this->definition['access arguments'])) {
return call_user_func_array($this->definition['access callback'], $this->definition['access arguments']);
}
return $this->definition['access callback']();
}
return TRUE;
}