public function doesSupport($widget)
    {
        if (gettype($widget)!="string") {
            $widget = get_class($widget);            
        }
        return isset($this->themeWidgets()[$widget]);
    }
public function doesSupport($widget)
    {
        if (gettype($widget)!="string") {
            $widget = get_class($widget);            
        }
        return isset($this->themeWidgets()[$widget]);
    }
public function doesSupport ( $ widget ) { if ( gettype ( $ widget ) != "string" ) { $ widget = get_class ( $ widget ) ; } return isset ( $ this -> themeWidgets ( ) [ $ widget ] ) ; }
Whether theme support a widget

@param Widget $widget String of classname or object

@return boolean Whether theme support a widget
Whether theme support a widget