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

Public Member Functions

 __construct ($view, $label=NULL)
 
 getView ()
 
 getLabel ()
 

Detailed Description

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

Constructor & Destructor Documentation

§ __construct()

Prismic\Fragment\Block\ImageBlock::__construct (   $view,
  $label = NULL 
)

Constructs an Image block from a ImageView.

Parameters
\Prismic\Fragment\ImageView$viewthe ImageView.
$labelstring

Member Function Documentation

§ getLabel()

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

Returns the label

Returns
string the label

§ getView()

Prismic\Fragment\Block\ImageBlock::getView ( )

Returns the ImageView to be manipulated.

Returns
the ImageView.

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