BlockLayout

View helper for rendering block layouts.
extends Zend\View\Helper\AbstractHelper
Methods Summary
public
# __construct( Omeka\Site\BlockLayout\Manager $manager )
public
# getLayouts( )
Get all registered layouts.
public
# getLayoutLabel( string $layout )
Get a layout label.
public
# prepareForm( )
Prepare the view to enable the block layout form.
public
# forms( Omeka\Api\Representation\SitePageRepresentation $sitePage )
Return the HTML necessary to render all block forms.
public
# form( string|\SitePageBlockRepresentation $layout , Omeka\Api\Representation\SiteRepresentation $site = NULL, Omeka\Api\Representation\SitePageRepresentation $page = NULL, $partialName = NULL )
Return the HTML necessary to render a block form.
public
# prepareRender( string $layout )
Prepare the view to enable the block layout.
public
# render( Omeka\Api\Representation\SitePageBlockRepresentation $block )
Return the HTML necessary to render the provided block.
Methods inherited from Zend\View\Helper\AbstractHelper
setView(), getView()
Constants Summary
public string PARTIAL_NAME
The default partial view script.
# 'common/block-layout'
Properties Summary
protected Omeka\Site\BlockLayout\Manager $manager
# NULL
Properties inherited from Zend\View\Helper\AbstractHelper
$view