ContentContainerHelper
in package
Helper class for ContentContainer related problems.
Tags
Table of Contents
Properties
Methods
- getCurrent() : ContentContainerActiveRecord|null
- setCurrent() : mixed
- Can be used to manually set the current container context.
Properties
$container
private
static ContentContainerActiveRecord
$container
container
Tags
Methods
getCurrent()
public
static getCurrent([string|null $type = null ]) : ContentContainerActiveRecord|null
Parameters
- $type : string|null = null
-
type filter available since 1.4
Return values
ContentContainerActiveRecord|null —currently active container from app context.
setCurrent()
Can be used to manually set the current container context.
public
static setCurrent([ContentContainerActiveRecord|null $container = null ]) : mixed
Parameters
- $container : ContentContainerActiveRecord|null = null