public function FileDownloadNumeric::access in File Download 8
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 HandlerBase::access
File
- modules/
file_download_counter/ src/ Plugin/ views/ field/ FileDownloadNumeric.php, line 20
Class
- FileDownloadNumeric
- Field handler to display numeric values from the statistics module.
Namespace
Drupal\file_download_counter\Plugin\views\fieldCode
public function access(AccountInterface $account) {
return $account
->hasPermission('view file download counter');
}