Bladeren bron

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume 2 jaren geleden
bovenliggende
commit
d616a0265e
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php Bestand weergeven

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

Laden…
Annuleren
Opslaan