abstract public function 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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
Implements Drupal\views\Plugin\views\access\AccessPluginBase::access().
Permission::access in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Permission.php
Determine if the current user has access or not.
Role::access in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Role.php
Determine if the current user has access or not.
StaticTest::access in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/access/StaticTest.php
Determine if the current user has access or not.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php, line 67
Definition of 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);