public function HandlerBase::access

Check whether current user has access to this handler.

Return value

boolean

6 methods override HandlerBase::access()
Field::access in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Check whether current user has access to this handler.
Link::access in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php
Check whether current user has access to this handler.
LinkApprove::access in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php
Check whether current user has access to this handler.
LinkDelete::access in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php
Check whether current user has access to this handler.
LinkReply::access in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php
Check whether current user has access to this handler.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php, line 467
Definition of Drupal\views\Plugin\views\HandlerBase.

Class

HandlerBase

Namespace

Drupal\views\Plugin\views

Code

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;
}