Zend\Mvc\Controller\Plugin\Layout
Synopsis
class Layout
extends AbstractPlugin
{
- // members
- protected MvcEvent $event;
- // Inherited members from AbstractPlugin
- protected null|Dispatchable $controller;
- // methods
- public Layout setTemplate()
- public Model|Layout __invoke()
- protected MvcEvent getEvent()
- protected ModelInterface getViewModel()
- // Inherited methods from AbstractPlugin
- public void setController()
- public null|Dispatchable getController()
Hierarchy
Members
protected
- $controller — Zend\Mvc\Controller\Plugin\null|Dispatchable
- $event — Zend\Mvc\MvcEvent
Methods
protected
- getEvent() — Get the event
- getViewModel() — Retrieve the root view model from the event
public
- __invoke() — Invoke as a functor
- setTemplate() — Set the layout template
Inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
public
- getController() — Get the current controller instance
- setController() — Set the current controller instance