class GoogleRichSnippetsExtension extends Twig_Extension

Class GoogleRichSnippetsExtension is injected as twig.extension.alligator.google_rich_snippets service. GoogleRichSnippetsExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected GoogleRichSnippetsManager $manager

Methods

__construct(GoogleRichSnippetsManager $manager)

No description

getFunctions()

{@inheritdoc}

mixed
getReviewTotalForProduct(mixed $product)

No description

string
getName()

Returns the name of the extension.

Details

at line 28
__construct(GoogleRichSnippetsManager $manager)

Parameters

GoogleRichSnippetsManager $manager

at line 36
getFunctions()

{@inheritdoc}

at line 48
mixed getReviewTotalForProduct(mixed $product)

Parameters

mixed $product

Return Value

mixed

at line 58
string getName()

Returns the name of the extension.

Return Value

string The extension name