ProductRelationshipSettingsExtension
class ProductRelationshipSettingsExtension extends Twig_Extension
Class ProductRelationshipSettingsExtension is injected as twig.extension.empire_product_relationship_plugin.settings service. ProductRelationshipSettingsExtension handles the logic and provides necessary data for managed entity in twig.
Properties
| protected ProductRelationshipSettingsManager | $manager | ||
| protected ArrayCollection | $relationshipNames |
Methods
getFunctions()
{@inheritdoc}
bool
getRelationshipSettingsForMainProduct()
Get product relationship settings from cache or cache it
string
getName()
Returns the name of the extension.
Details
at line 35
__construct(ProductRelationshipSettingsManager $manager)
EmpirePromoProductsExtension constructor.
at line 43
getFunctions()
{@inheritdoc}
at line 54
bool
getRelationshipSettingsForMainProduct()
Get product relationship settings from cache or cache it
at line 63
string
getName()
Returns the name of the extension.