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

Deprecation: will be removed in 1.2
Inheritance: extends Twig_Extension
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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 méthode

public getFunctions ( )

getName() public méthode

public getName ( )

getSeoMetaTags() public méthode

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
Résultat string