AlligatorProductExtension
class AlligatorProductExtension extends Twig_Extension
Class AlligatorProductExtension is injected as twig.extension.alligator.product service. AlligatorProductExtension handles the logic and provides necessary data for managed entity in twig.
Properties
| protected ProductManager | $productManager |
Methods
{@inheritdoc}
Find featured products
Find buy x get y offer for product by id
Find bundled products for grouped product id
Get all possible ticket types
Get all possible reclamation statuses
Get all possible unit of measure types
Returns the name of the extension.
Find default sort fields
Get product attribute values base image urls
Details
at line 41
__construct(ProductManager $productManager)
AlligatorProductExtension constructor.
at line 49
getFunctions()
{@inheritdoc}
at line 67
array
getFeatureProducts()
Find featured products
at line 82
array
getProductPageBuyXGetYOfferForProduct(int $id)
Find buy x get y offer for product by id
at line 100
GroupProduct
getBundledProductsForGroupProduct(int $groupId)
Find bundled products for grouped product id
at line 111
array
getAllPossibleTicketTypes()
Get all possible ticket types
at line 122
array
getAllPossibleReclamationStatuses()
Get all possible reclamation statuses
at line 133
array
getAllPossibleUnitOfMeasureTypes()
Get all possible unit of measure types
at line 143
string
getName()
Returns the name of the extension.
at line 152
array
getDefaultSortField()
Find default sort fields
at line 167
array|bool
getPavImage(array $attrValues, array $attrValuesPavs, array $pavs)
Get product attribute values base image urls