Sfoglia il codice sorgente

ControllerTrait

packProduct
Guillaume 3 anni fa
parent
commit
7e99858740
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php Vedi File

@@ -143,6 +143,11 @@ trait ControllerTrait
return $this->get(SectionResolver::class)->getCurrent();
}

public function getSectionCurrentSlug(): string
{
return $this->getSectionCurrent()->getSlug();
}

public function getCartCurrent(): OrderShopInterface
{
return $this->getOrderShopContainer()->getBuilder()->createIfNotExist(

Loading…
Annulla
Salva