Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessPluginBase.php

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

bool Returns whether the user has access to the view.

3 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.

File

core/modules/views/src/Plugin/views/access/AccessPluginBase.php, line 64

Class

AccessPluginBase
The base plugin to handle access control.

Namespace

Drupal\views\Plugin\views\access

Code

public abstract function access(AccountInterface $account);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal