0 follower

Interface Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface

Implemented byYiisoft\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

Hide inherited methods

Method Description Defined By
getCommonParameters() Returns parameters for added both to view template and to layout. Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface

Method Details

Hide inherited methods

getCommonParameters() public abstract method

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;