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.
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);