From 2ce9f64cf48328cfb4308c9c3342cf5d0ee234fd Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 17 Mar 2016 01:56:47 +0100 Subject: [PATCH] better contract for BootstrapWidgetTrait --- BootstrapWidgetTrait.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BootstrapWidgetTrait.php b/BootstrapWidgetTrait.php index a1d09cb..d0c90bf 100644 --- a/BootstrapWidgetTrait.php +++ b/BootstrapWidgetTrait.php @@ -98,4 +98,10 @@ trait BootstrapWidgetTrait $this->getView()->registerJs(implode("\n", $js)); } } -} \ No newline at end of file + + /** + * @return \yii\web\View the view object that can be used to render views or view files. + * @see yii\base\Widget::getView() + */ + abstract function getView(); +}