public function TestExample::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/area/TestExample.php \Drupal\views_test_data\Plugin\views\area\TestExample::access()
Check whether given user has access to this handler.
Parameters
AccountInterface $account: The user account to check.
Return value
bool TRUE if the user has access to the handler, FALSE otherwise.
Overrides HandlerBase::access
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php, line 26 - Contains \Drupal\views_test_data\Plugin\views\area\TestExample.
Class
- TestExample
- Test area plugin.
Namespace
Drupal\views_test_data\Plugin\views\areaCode
public function access(AccountInterface $account) {
return $this->options['custom_access'];
}