This class embodies a heading (title) block inside a StructuredText fragment.
§ __construct()
| Prismic\Fragment\Block\HeadingBlock::__construct |
( |
|
$text, |
|
|
|
$spans, |
|
|
|
$level, |
|
|
|
$label = NULL |
|
) |
| |
Constructs an heading block.
- Parameters
-
| string | $text | the unformatted text |
| array | $spans | an array of objects that contain the formatting (em, strong, links, ...) |
| string | $level | the heading's level |
| string | $label | may be null |
§ getLevel()
| Prismic\Fragment\Block\HeadingBlock::getLevel |
( |
| ) |
|
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/HeadingBlock.php