public function PreviewLinkHostInterface::hasPreviewLinks in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x src/PreviewLinkHostInterface.php \Drupal\preview_link\PreviewLinkHostInterface::hasPreviewLinks()
Determines if an entity has any active preview links.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An entity.
Return value
bool Whether the entity has any associated preview links.
1 method overrides PreviewLinkHostInterface::hasPreviewLinks()
- PreviewLinkHost::hasPreviewLinks in src/
PreviewLinkHost.php - Determines if an entity has any active preview links.
File
- src/
PreviewLinkHostInterface.php, line 47
Class
- PreviewLinkHostInterface
- Interface for relationships between preview links and entities they unlock.
Namespace
Drupal\preview_linkCode
public function hasPreviewLinks(EntityInterface $entity) : bool;