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.
5 methods override AccessPluginBase::access()
- CacheableMetadataCalculationTest::access in core/
modules/ views/ tests/ modules/ views_test_cacheable_metadata_calculation/ src/ Plugin/ views/ access/ CacheableMetadataCalculationTest.php  - Determine if the current user has access or not.
 - 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.
 - StaticTest::access in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ access/ StaticTest.php  - Determine if the current user has access or not.
 
File
- 
              core/
modules/ views/ src/ Plugin/ views/ access/ AccessPluginBase.php, line 67  
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.