Zend\Mvc\View\Http\InjectViewModelListener::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.
Signature
public function injectViewModel(MvcEvent
$e )
Parameters
$e
— Zend\Mvc\MvcEvent
Returns
- void