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.
§ __construct()
| Prismic\Fragment\Block\EmbedBlock::__construct |
( |
|
$obj, |
|
|
|
$label = NULL |
|
) |
| |
Constructs an OEmbed block from a OEmbed fragment.
- Parameters
-
| \Prismic\Fragment\Embed | $obj | the OEmbed fragment. |
| $label | string |
§ 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:
- src/Prismic/Fragment/Block/EmbedBlock.php