You are here

public function PreviewLinkStorageInterface::createPreviewLinkForEntity in Preview Link 8

Creates a new preview link from a content entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity the preview link is for.

Return value

\Drupal\preview_link\Entity\PreviewLinkInterface The preview link entity.

1 method overrides PreviewLinkStorageInterface::createPreviewLinkForEntity()
PreviewLinkStorage::createPreviewLinkForEntity in src/PreviewLinkStorage.php
Creates a new preview link from a content entity.

File

src/PreviewLinkStorageInterface.php, line 44

Class

PreviewLinkStorageInterface
Interface for Preview Link entities.

Namespace

Drupal\preview_link

Code

public function createPreviewLinkForEntity(ContentEntityInterface $entity);