|
|
|
|
|
|
|
|
new TwigFunction('cart_current', [$this, 'getCartCurrent']), |
|
|
new TwigFunction('cart_current', [$this, 'getCartCurrent']), |
|
|
new TwigFunction('cart_current_visited', [$this, 'getCartCurrentVisited']), |
|
|
new TwigFunction('cart_current_visited', [$this, 'getCartCurrentVisited']), |
|
|
new TwigFunction('merchant_current', [$this, 'getMerchantCurrent']), |
|
|
new TwigFunction('merchant_current', [$this, 'getMerchantCurrent']), |
|
|
|
|
|
new TwigFunction('merchant_current_slug', [$this, 'getMerchantCurrentSlug']), |
|
|
new TwigFunction('user_merchant_current', [$this, 'getUserMerchantCurrent']), |
|
|
new TwigFunction('user_merchant_current', [$this, 'getUserMerchantCurrent']), |
|
|
new TwigFunction('section_current', [$this, 'getSectionCurrent']), |
|
|
new TwigFunction('section_current', [$this, 'getSectionCurrent']), |
|
|
new TwigFunction('section_default', [$this, 'getSectionDefault']), |
|
|
new TwigFunction('section_default', [$this, 'getSectionDefault']), |
|
|
|
|
|
|
|
|
return $this->merchantResolver->getCurrent(); |
|
|
return $this->merchantResolver->getCurrent(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getMerchantCurrentSlug(): string |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->merchantResolver->getCurrent()->getSlug(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getUserMerchantCurrent(): ?UserMerchantInterface |
|
|
public function getUserMerchantCurrent(): ?UserMerchantInterface |
|
|
{ |
|
|
{ |
|
|
return $this->merchantResolver->getUserMerchant(); |
|
|
return $this->merchantResolver->getUserMerchant(); |