|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| getUrl ($linkResolver=null) | |
Public Member Functions inherited from Prismic\Fragment\FragmentInterface | |
| asText () | |
| asHtml ($linkResolver) | |
This interface embodies any link. LinkInterface objects can be found in two occasions: as the "$link" variable of a HyperlinkSpan object (which happens when the link is a hyperlink in a StructuredText fragment), or the LinkInterface can also be its own fragment (e.g. for a "related" fragment, that links to a related document).
Its known implementations are DocumentLink, WebLink, and also FileLink and ImageLink (united as "MediaLink" in former versions of the kit).
| Prismic\Fragment\Link\LinkInterface::getUrl | ( | $linkResolver = null | ) |
Returns the URL we're linking to. The linkResolver will be needed in case the link is a document link. Read more about the link resolver at the very end of prismic.io's documentation.
| \Prismic\LinkResolver | $linkResolver | the link resolver (read prismic.io's API documentation to learn more) |
Implemented in Prismic\Fragment\Link\DocumentLink, Prismic\Fragment\Link\FileLink, and Prismic\Fragment\Link\WebLink.
1.8.12