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]
$currentRegion
private
Region|null
$currentRegion
= null
Methods
getCurrentRegion()
public
getCurrentRegion() : Region|null
Return values
Region|nullinitCurrentRegion()
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
boolprepareRegionFilter()
private
prepareRegionFilter(array<int, Filter> &$filters) : void
Parameters
- $filters : array<int, Filter>