public function PreviewLinkHost::__construct in Preview Link 2.x
Same name and namespace in other branches
- 2.0.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_linkCode
public function __construct(EntityTypeManagerInterface $entityTypeManager) {
$this->previewLinkStorage = $entityTypeManager
->getStorage('preview_link');
}