You are here

public function Time::__construct in Lightning Workflow 8.3

Time constructor.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\State\StateInterface $state: The state service.

Overrides Time::__construct

File

modules/lightning_scheduler/src/Time.php, line 29

Class

Time
Decorates the time service to facilitate testing.

Namespace

Drupal\lightning_scheduler

Code

public function __construct(RequestStack $request_stack, StateInterface $state) {
  parent::__construct($request_stack);
  $this->state = $state;
}