Browse Source

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume 3 years ago
parent
commit
d616a0265e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php View File

return $this->get(SectionResolver::class)->getCurrent(); return $this->get(SectionResolver::class)->getCurrent();
} }


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

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

Loading…
Cancel
Save