function None::access

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::access()
  2. 8.9.x core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::access()
  3. 10 core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::access()

Overrides AccessPluginBase::access

File

core/modules/views/src/Plugin/views/access/None.php, line 32

Class

None
Access plugin that provides no access control at all.

Namespace

Drupal\views\Plugin\views\access

Code

public function access(AccountInterface $account) {
    // No access control.
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.