src/Sulu/Bundle/WebsiteBundle/Twig/Seo/SeoTwigExtension.php
public function renderSeoTags(
        \Twig_Environment $twig,
        array $seoExtension,
        array $content,
        array $urls,
        $shadowBaseLocale
    ) {
        $template = 'SuluWebsiteBundle:Extension:seo.html.twig';

        @trigger_error(sprintf(
            'This twig extension is deprecated and should not be used anymore, include the "%s".',
            $template
        ));

        $defaultLocale = null;
        $portal = $this->requestAnalyzer->getPortal();
        if ($portal) {
            $defaultLocale = $portal->getXDefaultLocalization()->getLocale();
        }

        return $twig->render(
            $template,
            [
                'seo' => $seoExtension,
                'content' => $content,
                'urls' => $urls,
                'defaultLocale' => $defaultLocale,
                'shadowBaseLocale' => $shadowBaseLocale,
            ]
        );
    }
public function renderSeoTags(
        \Twig_Environment $twig,
        array $seoExtension,
        array $content,
        array $urls,
        $shadowBaseLocale
    ) {
        $template = 'SuluWebsiteBundle:Extension:seo.html.twig';

        @trigger_error(sprintf(
            'This twig extension is deprecated and should not be used anymore, include the "%s".',
            $template
        ));

        $defaultLocale = null;
        $portal = $this->requestAnalyzer->getPortal();
        if ($portal) {
            $defaultLocale = $portal->getXDefaultLocalization()->getLocale();
        }

        return $twig->render(
            $template,
            [
                'seo' => $seoExtension,
                'content' => $content,
                'urls' => $urls,
                'defaultLocale' => $defaultLocale,
                'shadowBaseLocale' => $shadowBaseLocale,
            ]
        );
    }
public function renderSeoTags ( \ Twig_Environment $ twig , array $ seoExtension , array $ content , array $ urls , $ shadowBaseLocale ) { $ template = 'SuluWebsiteBundle:Extension:seo.html.twig' ; @ trigger_error ( sprintf ( 'This twig extension is deprecated and should not be used anymore, include the "%s".' , $ template ) ) ; $ defaultLocale = null ; $ portal = $ this -> requestAnalyzer -> getPortal ( ) ; if ( $ portal ) { $ defaultLocale = $ portal -> getXDefaultLocalization ( ) -> getLocale ( ) ; } return $ twig -> render ( $ template , [ 'seo' => $ seoExtension , 'content' => $ content , 'urls' => $ urls , 'defaultLocale' => $ defaultLocale , 'shadowBaseLocale' => $ shadowBaseLocale , ] ) ; }
Renders the correct title of the current page. The correct title is either the title provided by the SEO
extension, or the title of the content, if the SEO extension does not provide one.

@deprecated use the twig include function to render the seo
Renders the correct title of the current page . The correct title is either the title provided by the SEO extension or the title of the content if the SEO extension does not provide one .