You are here

public function UnmasqueradeAccessCheck::__construct in Masquerade 8.2

Constructs a new UnmasqueradeAccessCheck object.

Parameters

\Drupal\masquerade\Masquerade $masquerade: The masquerade service.

File

src/Access/UnmasqueradeAccessCheck.php, line 27

Class

UnmasqueradeAccessCheck
Checks access based on the masquerade status of the user.

Namespace

Drupal\masquerade\Access

Code

public function __construct(Masquerade $masquerade) {
  $this->masquerade = $masquerade;
}