function AccessDeniedSubscriber::__construct
Constructs a new redirect subscriber.
Parameters
\Drupal\Core\Session\AccountInterface $account: The current user.
File
- 
              core/
modules/ user/ src/ EventSubscriber/ AccessDeniedSubscriber.php, line 37  
Class
- AccessDeniedSubscriber
 - Redirects users when access is denied.
 
Namespace
Drupal\user\EventSubscriberCode
public function __construct(AccountInterface $account) {
  $this->account = $account;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.