You are here

public function PreviewLinkStorageInterface::getPreviewLinkForEntity in Preview Link 8

Gets the preview link for a given entity.

Parameters

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

Return value

\Drupal\preview_link\Entity\PreviewLinkInterface|false The preview link entity if it exists otherwise FALSE.

1 method overrides PreviewLinkStorageInterface::getPreviewLinkForEntity()
PreviewLinkStorage::getPreviewLinkForEntity in src/PreviewLinkStorage.php
Gets the preview link for a given entity.

File

src/PreviewLinkStorageInterface.php, line 22

Class

PreviewLinkStorageInterface
Interface for Preview Link entities.

Namespace

Drupal\preview_link

Code

public function getPreviewLinkForEntity(ContentEntityInterface $entity);