public function AccessDeniedSubscriber::__construct in SAML Authentication 8.2
Same name and namespace in other branches
- 8.3 src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::__construct()
- 4.x src/EventSubscriber/AccessDeniedSubscriber.php \Drupal\samlauth\EventSubscriber\AccessDeniedSubscriber::__construct()
Constructs a new redirect subscriber.
Parameters
\Drupal\Core\Session\AccountInterface $account: The current user.
File
- src/
EventSubscriber/ AccessDeniedSubscriber.php, line 32
Class
- AccessDeniedSubscriber
- Redirects logged-in users when access is denied to /saml/login.
Namespace
Drupal\samlauth\EventSubscriberCode
public function __construct(AccountInterface $account) {
$this->account = $account;
}