/** * {@inheritdoc} */ protected function createAsseticNode(\Twig_NodeInterface $body, array $filters, array $attributes, $lineno) { $currentTheme = $this->themeRegistry->getActiveTheme()->getName(); $this->themeRegistry->setActiveTheme(ThemeListener::FRONTEND_THEME); $node = parent::createAsseticNode($body, $filters, $attributes, $lineno); $this->themeRegistry->setActiveTheme($currentTheme); return $node; }