瀏覽代碼

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…
取消
儲存