public function StaticTest::access in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/modules/views_test_data/src/Plugin/views/access/StaticTest.php \Drupal\views_test_data\Plugin\views\access\StaticTest::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
TRUE Returns whether the user has access to the view.
Overrides AccessPluginBase::access
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ access/ StaticTest.php, line 35 - Contains \Drupal\views_test_data\Plugin\views\access\StaticTest.
Class
- StaticTest
- Tests a static access plugin.
Namespace
Drupal\views_test_data\Plugin\views\accessCode
public function access(AccountInterface $account) {
return !empty($this->options['access']);
}