Abstract aggregate listener
package | Default |
---|---|
inherited_from | \Zend\Mvc\View\Http\InjectViewModelListener |
attach(\Zend\EventManager\EventManagerInterface $events)
detach(\Zend\EventManager\EventManagerInterface $events)
inherited_from | \Zend\EventManager\ListenerAggregateInterface::detach() |
---|
injectViewModel(\Zend\Mvc\MvcEvent $e) : void
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.
\Zend\Mvc\MvcEvent
$inflector : mixed
$listeners : array<mixed,\Zend\Stdlib\CallbackHandler>
array()