Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessDeniedSubscriber.php

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 35

Class

AccessDeniedSubscriber
Redirects users when access is denied.

Namespace

Drupal\user\EventSubscriber

Code

public function __construct(AccountInterface $account) {
    $this->account = $account;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal