Interface Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface
| Implemented by | Yiisoft\Yii\View\Renderer\CsrfViewInjection |
|---|
CommonParametersInjectionInterface is an interface that must be implemented by classes to inject
parameters both to view template and to layout.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getCommonParameters() | Returns parameters for added both to view template and to layout. | Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface |
Method Details
Returns parameters for added both to view template and to layout.
For example:
[
'paramA' => 'something',
'paramB' => 42,
...
]
| public abstract array getCommonParameters ( ) |
public function getCommonParameters(): array;
Signup or Login in order to comment.