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\accessCode
public abstract function access(AccountInterface $account);