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