This class embodies a Slice Zone.
§ __construct()
| Prismic\Fragment\SliceZone::__construct |
( |
|
$slices | ) |
|
Constructs a SliceZone fragment.
- Parameters
-
| string | $slices | the array of associative arrays of subfragments |
§ asHtml()
| Prismic\Fragment\SliceZone::asHtml |
( |
|
$linkResolver = null | ) |
|
§ asText()
| Prismic\Fragment\SliceZone::asText |
( |
| ) |
|
§ getSlices()
| Prismic\Fragment\SliceZone::getSlices |
( |
| ) |
|
Returns an array version of this group fragment, on which you can do all you can do on an array: loop, access a certain index...
Each item is a Slice.
- Returns
- array the array to loop on / access items / etc.
§ parse()
| static Prismic\Fragment\SliceZone::parse |
( |
|
$json | ) |
|
|
static |
Parses a given SliceZone fragment. Not meant to be used except for testing.
- Parameters
-
| \stdClass | $json | the json bit retrieved from the API that represents a SliceZone fragment. |
- Returns
- the manipulable object for that SliceZone fragment.
The documentation for this class was generated from the following file:
- src/Prismic/Fragment/SliceZone.php