public function Operations::access in Advanced Queue 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
- src/
Plugin/ views/ field/ Operations.php, line 44
Class
- Operations
- Field handler to render operations available for a given job.
Namespace
Drupal\advancedqueue\Plugin\views\fieldCode
public function access(AccountInterface $account) {
return $account
->hasPermission('administer advancedqueue');
}