瀏覽代碼

Ajout ControllerTrait : getSectionCurrentDefault

packProduct
Guillaume 3 年之前
父節點
當前提交
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…
取消
儲存