You are here

public function PreviewLinkHostInterface::getPreviewLinks in Preview Link 2.0.x

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

Get preview links for an entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An entity.

Return value

\Drupal\preview_link\Entity\PreviewLinkInterface[] Preview links associated with an entity.

1 method overrides PreviewLinkHostInterface::getPreviewLinks()
PreviewLinkHost::getPreviewLinks in src/PreviewLinkHost.php
Get preview links for an entity.

File

src/PreviewLinkHostInterface.php, line 23

Class

PreviewLinkHostInterface
Interface for relationships between preview links and entities they unlock.

Namespace

Drupal\preview_link

Code

public function getPreviewLinks(EntityInterface $entity) : array;