Skip to content
PHP Ecosystem
Explore

ViewContextInterface

API reference › yii › base › ViewContextInterface

interfaceyii\base\ViewContextInterface
Since2.0
Sourceframework/base/ViewContextInterface.php
Implemented by 5 types

ViewContextInterface is the interface that should implemented by classes who want to support relative view names.

The method getViewPath() should be implemented to return the view path that may be prefixed to a relative view name.

MethodDescriptionDefined by
getViewPath() abstractViewContextInterface
abstract public function getViewPath(): string

Returns

string: The view path that may be prefixed to a relative view name.