You are here

public function PreviewLinkHooks::__construct in Preview Link 8

PreviewLinkHooks constructor.

Parameters

\Drupal\preview_link\PreviewLinkStorageInterface $previewLinkStorage: Preview link storage.

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

\Drupal\preview_link\LinkExpiry $linkExpiry: Calculates link expiry time.

File

src/PreviewLinkHooks.php, line 45

Class

PreviewLinkHooks
Drupal hooks.

Namespace

Drupal\preview_link

Code

public function __construct(PreviewLinkStorageInterface $previewLinkStorage, TimeInterface $time, LinkExpiry $linkExpiry) {
  $this->previewLinkStorage = $previewLinkStorage;
  $this->time = $time;
  $this->linkExpiry = $linkExpiry;
}