public function FileDownloadCounterTimestamp::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/ FileDownloadCounterTimestamp.php, line 20
Class
- FileDownloadCounterTimestamp
- Field handler to display the most recent time the node has been viewed.
Namespace
Drupal\file_download_counter\Plugin\views\fieldCode
public function access(AccountInterface $account) {
return $account
->hasPermission('view file download counter');
}