CustomerActivityLogExtension
class CustomerActivityLogExtension extends Twig_Extension
Class CustomerActivityLogExtension is injected as empire_customer_activity_log_plugin.twig_extension service. CustomerActivityLogExtension handles the logic and provides necessary data for managed entity in twig.
Methods
getFunctions()
{@inheritdoc}
int
getNumberOfSoldTimes(int $productId)
Get number of how many times specific product is sold
string
getName()
Returns the name of the extension.
Details
at line 29
__construct(OrderManager $orderManager)
CustomerActivityLogExtension constructor.
at line 37
getFunctions()
{@inheritdoc}
at line 53
int
getNumberOfSoldTimes(int $productId)
Get number of how many times specific product is sold
at line 67
string
getName()
Returns the name of the extension.