Преглед на файлове

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume преди 2 години
родител
ревизия
d616a0265e
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php Целия файл

@@ -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…
Отказ
Запис