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

Public Member Functions

 __construct ($obj, $label=NULL)
 
 getObj ()
 
 getLabel ()
 

Detailed Description

This class embodies an Embed block inside a StructuredText fragment. Since its features are strictly similar to an Embed fragment, it only contains an Embed fragment object.

Constructor & Destructor Documentation

§ __construct()

Prismic\Fragment\Block\EmbedBlock::__construct (   $obj,
  $label = NULL 
)

Constructs an OEmbed block from a OEmbed fragment.

Parameters
\Prismic\Fragment\Embed$objthe OEmbed fragment.
$labelstring

Member Function Documentation

§ getLabel()

Prismic\Fragment\Block\EmbedBlock::getLabel ( )

Returns the label

Returns
string the label

§ getObj()

Prismic\Fragment\Block\EmbedBlock::getObj ( )

Returns the OEmbed fragment to be manipulated.

Returns
the OEmbed fragment.

The documentation for this class was generated from the following file: