function AccessPluginBase::access
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\AccessPluginBase::access()
- 10 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\AccessPluginBase::access()
- 8.9.x 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
bool Returns whether the user has access to the view.
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\accessCode
abstract public function access(AccountInterface $account);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.