You are here

public function PreviewLinkExpiry::__construct in Preview Link 2.0.x

Same name and namespace in other branches
  1. 2.x src/PreviewLinkExpiry.php \Drupal\preview_link\PreviewLinkExpiry::__construct()

LinkExpiry constructor.

Parameters

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

File

src/PreviewLinkExpiry.php, line 34

Class

PreviewLinkExpiry
Calculates link expiry time.

Namespace

Drupal\preview_link

Code

public function __construct(StateInterface $state) {
  $this->state = $state;
}