class ProductVideoPluginExtension extends Twig_Extension

Class ProductVideoPluginExtension

Constants

YOUTUBE_EMBED_CODE

VIMEO_EMBED_CODE

Properties

protected ProductVideoManager $productVideoManager

Methods

__construct(ProductVideoManager $productVideoManager)

Constructor

getFunctions()

{@inheritdoc}

mixed
getProductVideo(int $id)

No description

string
formatYoutubeLink(string $link)

No description

string
formatVimeoLink(string $link)

No description

string
getName()

Returns the name of the extension.

Details

at line 37
__construct(ProductVideoManager $productVideoManager)

Constructor

Parameters

ProductVideoManager $productVideoManager

at line 45
getFunctions()

{@inheritdoc}

at line 59
mixed getProductVideo(int $id)

Parameters

int $id

Return Value

mixed

Parameters

string $link

Return Value

string

Parameters

string $link

Return Value

string

at line 96
string getName()

Returns the name of the extension.

Return Value

string The extension name