function AccessPluginBase::access
Same name in other branches
- 9 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()
- 10 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.
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 64
Class
- AccessPluginBase
- The base plugin to handle access control.
Namespace
Drupal\views\Plugin\views\accessCode
public abstract function access(AccountInterface $account);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.