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
Namespace
Drupal\state_machine_test\GuardCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}