This class embodies a span with a specific label. By default, Prismic::insertSpans will render these as a span element with the label name as the class attribute.
§ __construct()
| Prismic\Fragment\Span\LabelSpan::__construct |
( |
|
$start, |
|
|
|
$end, |
|
|
|
$label |
|
) |
| |
Constructs a label span
- Parameters
-
| int | $start | the start of the span |
| int | $end | the end of the span |
| string | $label | The value of the label in the writing room |
§ getEnd()
| Prismic\Fragment\Span\LabelSpan::getEnd |
( |
| ) |
|
Returns the end of the span
- Returns
- int the end of the span
§ getLabel()
| Prismic\Fragment\Span\LabelSpan::getLabel |
( |
| ) |
|
Returns the label
- Returns
- string the label
§ getStart()
| Prismic\Fragment\Span\LabelSpan::getStart |
( |
| ) |
|
Returns the start of the span
- Returns
- int the start of the span
The documentation for this class was generated from the following file:
- src/Prismic/Fragment/Span/LabelSpan.php