TemplateResponseBehavior ​
- Type
- Class
- Namespace
- craft\web
- Inherits
- craft\web\TemplateResponseBehavior » yii\base\Behavior » yii\base\BaseObject
- Implements
- yii\base\Configurable
- Since
- 4.0.0
Control panel screen response behavior.
Public Properties ​
Property | Description |
---|---|
owner | yii\base\Component, null – The owner of this behavior |
template | string – The template to render. |
templateMode | string, null – The template mode to use (site or cp ). |
variables | array – Template variables. |
template
​
- Type
- string
- Default value
null
The template to render.
templateMode
​
The template mode to use (site
or cp
).
variables
​
- Type
- array
- Default value
[]
Template variables.
Public Methods ​
Method | Description |
---|---|
__call() | Calls the named method which is not a class method. |
__construct() | Constructor. |
__get() | Returns the value of an object property. |
__isset() | Checks if a property is set, i.e. defined and not null. |
__set() | Sets value of an object property. |
__unset() | Sets an object property to null. |
attach() | Attaches the behavior object to the component. |
canGetProperty() | Returns a value indicating whether a property can be read. |
canSetProperty() | Returns a value indicating whether a property can be set. |
className() | Returns the fully qualified name of this class. |
detach() | Detaches the behavior object from the component. |
events() | Declares event handlers for the owner's events. |
hasMethod() | Returns a value indicating whether a method is defined. |
hasProperty() | Returns a value indicating whether a property is defined. |
init() | Initializes the object. |
Constants ​
Constant | Description |
---|---|
NAME |