You are here

abstract public function AccessPluginBase::access in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\AccessPluginBase::access()

Determine if the current user has access or not.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.

Return value

TRUE Returns whether the user has access to the view.

4 methods override AccessPluginBase::access()
None::access in core/modules/views/src/Plugin/views/access/None.php
Determine if the current user has access or not.
Permission::access in core/modules/user/src/Plugin/views/access/Permission.php
Determine if the current user has access or not.
Role::access in core/modules/user/src/Plugin/views/access/Role.php
Determine if the current user has access or not.
StaticTest::access in core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php
Determine if the current user has access or not.

File

core/modules/views/src/Plugin/views/access/AccessPluginBase.php, line 69
Contains \Drupal\views\Plugin\views\access\AccessPluginBase.

Class

AccessPluginBase
The base plugin to handle access control.

Namespace

Drupal\views\Plugin\views\access

Code

public abstract function access(AccountInterface $account);