You are here

protected function AccessTokenController::setTime in Access unpublished 8

Set the time service.

Parameters

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/Controller/AccessTokenController.php, line 40

Class

AccessTokenController
Controller for the access token handling.

Namespace

Drupal\access_unpublished\Controller

Code

protected function setTime(TimeInterface $time) {
  $this->time = $time;
}