bundles/BlockManagerBundle/EventListener/ViewListener.php
public function onView(GetResponseForControllerResultEvent $event): void
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $controllerResult = $event->getControllerResult();
        if (!$controllerResult instanceof ViewInterface) {
            return;
        }

        $event->getRequest()->attributes->set('ngbmView', $controllerResult);
    }
public function onView(GetResponseForControllerResultEvent $event): void
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $controllerResult = $event->getControllerResult();
        if (!$controllerResult instanceof ViewInterface) {
            return;
        }

        $event->getRequest()->attributes->set('ngbmView', $controllerResult);
    }
public function onView ( GetResponseForControllerResultEvent $ event ) : void { if ( ! $ event -> isMasterRequest ( ) ) { return ; } $ controllerResult = $ event -> getControllerResult ( ) ; if ( ! $ controllerResult instanceof ViewInterface ) { return ; } $ event -> getRequest ( ) -> attributes -> set ( 'ngbmView' , $ controllerResult ) ; }
Sets the Netgen Layouts view provided by the controller to the request.
Sets the Netgen Layouts view provided by the controller to the request .