skeeks\cms\models\CmsDashboardWidget::getWidget PHP Method

getWidget() public method

public getWidget ( ) : skeeks\cms\modules\admin\base\AdminDashboardWidget
return skeeks\cms\modules\admin\base\AdminDashboardWidget
    public function getWidget()
    {
        if ($this->component) {
            if (class_exists($this->component)) {
                /**
                 * @var $component AdminDashboardWidget
                 */
                $component = \Yii::createObject($this->component);
                $component->load($this->component_settings, "");
                return $component;
            }
        }
        return null;
    }