PHP Class Sulu\Bundle\WebsiteBundle\Twig\Meta\MetaTwigExtension

Deprecation: will be removed in 1.2
Inheritance: extends Twig_Extension
Mostrar archivo Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface $contentPath ) Constructor.
getAlternateLinks ( array $urls ) : string Returns alternate link HTML tags with href-lang attributes.
getFunctions ( )
getName ( )
getSeoMetaTags ( array $extension, array $content ) : string Returns seo meta tags with fallbacks.

Private Methods

Method Description
getAlternate ( string $url, string $webspaceKey, string $locale, boolean $default = false ) : string Returns link-alternate html tag - e.g. .
getMeta ( string $name, string $content ) : string Returns meta html tag - e.g. .

Method Details

__construct() public method

Constructor.
public __construct ( Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer, Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface $contentPath )
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface
$contentPath Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

getSeoMetaTags() public method

Returns seo meta tags with fallbacks.
Deprecation: since 1.1 use SeoTwigExtension::renderSeoTags - sulu_seo
public getSeoMetaTags ( array $extension, array $content ) : string
$extension array
$content array
return string