|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($sliceType, $label, $value) | |
| asHtml ($linkResolver=null) | |
| asText () | |
| getSliceType () | |
| getLabel () | |
| getValue () | |
This class embodies a Slice fragment.
| Prismic\Fragment\Slice::__construct | ( | $sliceType, | |
| $label, | |||
| $value | |||
| ) |
Constructs a Slice object.
| string | $sliceType | the type of the slice as describe in the document mask |
| string | $label | the optional label (may be null) |
| Prismic\Fragment | $value | the inner fragment |
| Prismic\Fragment\Slice::asHtml | ( | $linkResolver = null | ) |
Builds a HTML version of the Text fragment.
| \Prismic\LinkResolver | $linkResolver | the link resolver |
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Slice::asText | ( | ) |
Builds a text version of the Slice fragment.
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Slice::getLabel | ( | ) |
Returns the slice label as declared in the Document Mask.
| Prismic\Fragment\Slice::getSliceType | ( | ) |
Returns the slice type as declared in the Document Mask.
| Prismic\Fragment\Slice::getValue | ( | ) |
Returns the inner value of the fragment.
1.8.12