View helper for retrieving layout object

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Set layout template or retrieve "layout" view model

__invoke(null|string $template = null) : \Zend\View\Helper\Layout

If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.

Parameters

$template

nullstring

Returns

\Zend\View\Helper\Layout

Get layout template

getLayout() : string

Returns

string

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Set layout template

setTemplate(string $template) : \Zend\View\Helper\Layout

Parameters

$template

string

Returns

\Zend\View\Helper\Layout

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \Zend\View\Helper\HelperInterface::setView()

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

Get the root view model

getRoot() : null | \Zend\View\Model\ModelInterface

Exceptions

\Zend\View\Exception\RuntimeException

Returns

null\Zend\View\Model\ModelInterface

Retrieve the view model helper

getViewModelHelper() : \Zend\View\Helper\ViewModel

Returns

\Zend\View\Helper\ViewModel

 Properties

 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null
 

$viewModelHelper

$viewModelHelper : \Zend\View\Helper\ViewModel

Default