addStylesheet('/app/bundles/NotificationBundle/Assets/css/popup/popup.css'); $response = $this->render( '@MauticNotification/Popup/index.html.twig', [ 'siteUrl' => $this->coreParametersHelper->get('site_url'), ] ); $content = $response->getContent(); $event = new PageDisplayEvent($content, new Page()); $this->dispatcher->dispatch($event, PageEvents::PAGE_ON_DISPLAY); $content = $event->getContent(); return $response->setContent($content); } }