Skip to content

SiteFilterTrait ​

Type
Trait
Namespace
craft\filters
Uses traits
craft\filters\ConditionalFilterTrait
Implemented by
craft\filters\BasicHttpAuthLogin, craft\filters\BasicHttpAuthStatic, craft\filters\Cors, craft\filters\Headers
Since
5.3.0

Trait to make a filter site-aware.

See also https://www.yiiframework.com/doc/api/2.0/yii-filters-cors

View source

Public Properties ​

PropertyDescription
siteinteger, string, craft\models\Site, `(int

site ​

Type
integer, string, craft\models\Site, (int|string|\craft\models\Site)[]
Default value
null

View source

Protected Methods ​

MethodDescription
isActive()
setSite()

isActive() ​

View source

Arguments ​

  • $action

setSite() ​

View source

Arguments ​

  • $value