public function Redirect404Operations::access in Redirect 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/
redirect_404/ src/ Plugin/ views/ field/ Redirect404Operations.php, line 119
Class
- Redirect404Operations
- Provides a views field for the redirect operation buttons.
Namespace
Drupal\redirect_404\Plugin\views\fieldCode
public function access(AccountInterface $account) {
return $this->entityTypeManager
->getAccessControlHandler('redirect')
->createAccess();
}