This class embodies a list item block inside a StructuredText fragment.
§ __construct()
| Prismic\Fragment\Block\ListItemBlock::__construct |
( |
|
$text, |
|
|
|
$spans, |
|
|
|
$ordered, |
|
|
|
$label = null |
|
) |
| |
Constructs a list item block.
- Parameters
-
| string | $text | the unformatted text |
| array | $spans | an array of objects that contain the formatting (em, strong, links, ...) |
| boolean | $ordered | true if part of an ordered list, false if unordered |
| string | $label | can be null |
§ isOrdered()
| Prismic\Fragment\Block\ListItemBlock::isOrdered |
( |
| ) |
|
Returns the heading's level.
- Returns
- string the heading's level.
The documentation for this class was generated from the following file:
- src/Prismic/Fragment/Block/ListItemBlock.php