You are here

public function NotFound::__construct in Unpublished 404 8

Constructs a NotFound object.

Parameters

\Drupal\Core\Session\AccountProxyInterface $account: The current user.

File

src/EventSubscriber/NotFound.php, line 28

Class

NotFound
Redirects 403 node page error responses to 404 page.

Namespace

Drupal\unpublished_404\EventSubscriber

Code

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