CoolCMS API

RegionTrait

Table of Contents

Properties

$regionSlugTranslator  : RegionNameTranslator
Router translator: the same one that builds the slug from the id in links (see init below).
$currentRegion  : Region|null

Methods

getCurrentRegion()  : Region|null
initCurrentRegion()  : void
isRegionBranchActive()  : bool
Whether the region and all its ancestors are active (nested set: an ancestor encloses lft/rgt).
prepareRegionFilter()  : void

Properties

$regionSlugTranslator

Router translator: the same one that builds the slug from the id in links (see init below).

public RegionNameTranslator $regionSlugTranslator
Attributes
#[Inject]

Methods

initCurrentRegion()

public initCurrentRegion() : void

isRegionBranchActive()

Whether the region and all its ancestors are active (nested set: an ancestor encloses lft/rgt).

private isRegionBranchActive(Region $region) : bool
Parameters
$region : Region
Return values
bool

prepareRegionFilter()

private prepareRegionFilter(array<int, Filter> &$filters) : void
Parameters
$filters : array<int, Filter>
On this page

Search results