Sfoglia il codice sorgente

Ajout ControllerTrait : getSectionCurrentDefault

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

+ 5
- 0
Controller/ControllerTrait.php Vedi File

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

public function getSectionCurrentDefault(): ?SectionInterface
{
return $this->get(SectionResolver::class)->getCurrent(true);
}

public function isOutOfSection()
{
return $this->get(SectionResolver::class)->isOutOfSection();

Loading…
Annulla
Salva