public function PreviewLinkRerouteException::getPreviewLink in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x src/Exception/PreviewLinkRerouteException.php \Drupal\preview_link\Exception\PreviewLinkRerouteException::getPreviewLink()
Get the preview link redirecting to.
Return value
\Drupal\preview_link\Entity\PreviewLinkInterface The preview link redirecting to.
File
- src/
Exception/ PreviewLinkRerouteException.php, line 69
Class
- PreviewLinkRerouteException
- Exception thrown when an entity needs to redirect to a preview link.
Namespace
Drupal\preview_link\ExceptionCode
public function getPreviewLink() : PreviewLinkInterface {
return clone $this->previewLink;
}