function HandlerBase::access
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::access()
- 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::access()
- 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::access()
- 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::access()
Check whether given user has access to this handler.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account to check.
Return value
bool TRUE if the user has access to the handler, FALSE otherwise.
Overrides ViewsHandlerInterface::access
1 call to HandlerBase::access()
- LanguageFilter::access in core/
modules/ views/ src/ Plugin/ views/ filter/ LanguageFilter.php
3 methods override HandlerBase::access()
- EntityField::access in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - LanguageFilter::access in core/
modules/ views/ src/ Plugin/ views/ filter/ LanguageFilter.php - TestExample::access in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php
File
-
core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php, line 556
Class
- HandlerBase
- Base class for Views handler plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function access(AccountInterface $account) {
if (isset($this->definition['access callback'])) {
throw new AccessException("The 'access callback' key in Views handler definitions is no longer supported in drupal:12.0.0. Use a custom access method on the handler instead.");
}
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.