public function PreviewLinkStorageInterface::getPreviewLink in Preview Link 8
Gets the preview link given entity type Id and entity Id.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
Return value
\Drupal\preview_link\Entity\PreviewLinkInterface|false The preview link entity if it exists otherwise FALSE.
1 method overrides PreviewLinkStorageInterface::getPreviewLink()
- PreviewLinkStorage::getPreviewLink in src/
PreviewLinkStorage.php - Gets the preview link given entity type Id and entity Id.
File
- src/
PreviewLinkStorageInterface.php, line 33
Class
- PreviewLinkStorageInterface
- Interface for Preview Link entities.
Namespace
Drupal\preview_linkCode
public function getPreviewLink(ContentEntityInterface $entity);