abstract public function AccessPluginBase::access in Views (for Drupal 7) 8.3
Determine if the current user has access or not.
Parameters
Drupal\user\User $account: The user who wants to access this view.
Return value
TRUE Returns whether the user has access to the view.
5 methods override AccessPluginBase::access()
- DynamicTest::access in tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ access/ DynamicTest.php - Determine if the current user has access or not.
- None::access in lib/
Drupal/ views/ Plugin/ views/ access/ None.php - Implements Drupal\views\Plugin\views\access\AccessPluginBase::access().
- Permission::access in lib/
Views/ user/ Plugin/ views/ access/ Permission.php - Determine if the current user has access or not.
- Role::access in lib/
Views/ user/ Plugin/ views/ access/ Role.php - Determine if the current user has access or not.
- StaticTest::access in tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ access/ StaticTest.php - Determine if the current user has access or not.
File
- lib/
Drupal/ views/ Plugin/ views/ access/ AccessPluginBase.php, line 81 - Definition of Drupal\views\Plugin\views\access\AccessPluginBase.
Class
- AccessPluginBase
- The base plugin to handle access control.
Namespace
Drupal\views\Plugin\views\accessCode
public abstract function access($account);