class Product360PluginExtension extends Twig_Extension

Class Product360PluginExtension is injected as app.product360_extension service. Product360PluginExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected Product360Manager $product360Manager

Methods

__construct(Product360Manager $product360Manager)

Constructor

getFunctions()

{@inheritdoc}

mixed
getProduct360(int $id)

Get product 360 by primary key

mixed
getProduct360DoesExist(int $id)

Check if product 360 exists for provided id

string
getName()

Returns the name of the extension.

Details

at line 36
__construct(Product360Manager $product360Manager)

Constructor

Parameters

Product360Manager $product360Manager

at line 44
getFunctions()

{@inheritdoc}

at line 59
mixed getProduct360(int $id)

Get product 360 by primary key

Parameters

int $id

Return Value

mixed

at line 74
mixed getProduct360DoesExist(int $id)

Check if product 360 exists for provided id

Parameters

int $id

Return Value

mixed

at line 84
string getName()

Returns the name of the extension.

Return Value

string The extension name