Prismic.io PHP kit  3.0.0
Public Member Functions | List of all members
Prismic\Fragment\Block\ListItemBlock Class Reference
Inheritance diagram for Prismic\Fragment\Block\ListItemBlock:
Prismic\Fragment\Block\TextBlock Prismic\Fragment\Block\BlockInterface

Public Member Functions

 __construct ($text, $spans, $ordered, $label=null)
 
 isOrdered ()
 
- Public Member Functions inherited from Prismic\Fragment\Block\TextBlock
 __construct ($text, $spans, $label=NULL)
 
 getText ()
 
 getSpans ()
 
 getLabel ()
 

Detailed Description

This class embodies a list item block inside a StructuredText fragment.

Constructor & Destructor Documentation

§ __construct()

Prismic\Fragment\Block\ListItemBlock::__construct (   $text,
  $spans,
  $ordered,
  $label = null 
)

Constructs a list item block.

Parameters
string$textthe unformatted text
array$spansan array of objects that contain the formatting (em, strong, links, ...)
boolean$orderedtrue if part of an ordered list, false if unordered
string$labelcan be null

Member Function Documentation

§ 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: