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
- 4.11.0
Trait to make a filter site-aware.
See also https://www.yiiframework.com/doc/api/2.0/yii-filters-cors
Public Properties ​
Property | Description |
---|---|
site | integer, string, craft\models\Site, `(int |
site
​
- Type
- integer, string, craft\models\Site,
(int|string|\craft\models\Site)[]
- Default value
null
Protected Methods ​
Method | Description |
---|---|
isActive() | |
setSite() |
isActive()
​
Arguments ​
$action
setSite()
​
Arguments ​
$value