You are here

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

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

PreviewLinkHost constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

File

src/PreviewLinkHost.php, line 28

Class

PreviewLinkHost
Service for relationships between preview links and entities they unlock.

Namespace

Drupal\preview_link

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
  $this->previewLinkStorage = $entityTypeManager
    ->getStorage('preview_link');
}