Class InjectViewModelListener

Summary

Fully Qualified Name: Zend\Mvc\View\Http\InjectViewModelListener
Extends: AbstractListenerAggregate

Description

Methods

Name Description Defined By
attach() {@inheritDoc} InjectViewModelListener
detach() {@inheritDoc} AbstractListenerAggregate
injectViewModel() Insert the view model into the event InjectViewModelListener

Method Details

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

injectViewModel()

Insert the view model into the event

Inspects the MVC result; if it's a view model, it then either (a) adds it as a child to the default, composed view model, or (b) replaces it if the result is marked as terminable.

Parameter Name Type Description
$e \MvcEvent

Returns: void

Top