PHP Класс Sulu\Bundle\WebsiteBundle\Twig\Seo\SeoTwigExtension

Наследование: extends Twig_Extension
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface $contentPath, Symfony\Component\HttpFoundation\RequestStack $requestStack )
getFunctions ( )
getName ( )
renderSeoTags ( Twig_Environment $twig, array $seoExtension, array $content, array $urls, $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.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface $contentPath, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface
$contentPath Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack

getFunctions() публичный Метод

public getFunctions ( )

getName() публичный Метод

public getName ( )

renderSeoTags() публичный Метод

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.
Устаревший: use the twig include function to render the seo
public renderSeoTags ( Twig_Environment $twig, array $seoExtension, array $content, array $urls, $shadowBaseLocale )
$twig Twig_Environment
$seoExtension array
$content array
$urls array