public function SwitchAccessCheck::__construct in Masquerade 8.2
Constructs a new UnmasqueradeAccessCheck object.
Parameters
\Drupal\masquerade\Masquerade $masquerade: The masquerade service.
File
- src/
Access/ SwitchAccessCheck.php, line 28
Class
- SwitchAccessCheck
- Checks access for any masquerade permissions.
Namespace
Drupal\masquerade\AccessCode
public function __construct(Masquerade $masquerade) {
$this->masquerade = $masquerade;
}