Pārlūkot izejas kodu

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume pirms 2 gadiem
vecāks
revīzija
d616a0265e
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php Parādīt failu

@@ -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();

Notiek ielāde…
Atcelt
Saglabāt