public function PreviewLinkHostInterface::getPreviewLinks in Preview Link 2.0.x
Same name and namespace in other branches
- 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_linkCode
public function getPreviewLinks(EntityInterface $entity) : array;