Parcourir la source

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume il y a 2 ans
Parent
révision
d616a0265e
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php Voir le fichier

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

Chargement…
Annuler
Enregistrer