You are here

public function GenericGuard::__construct in State Machine 8

Constructs a new GenericGuard object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

tests/modules/state_machine_test/src/Guard/GenericGuard.php, line 26

Class

GenericGuard

Namespace

Drupal\state_machine_test\Guard

Code

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