protected function getWidgetPath()
    {
        $name = html_clean($this->widgetName);
        $name = str_replace(['.', '_'], ' ', $name);
        $name = str_replace(' ', '', ucwords($name));
        $name = $this->namespace . '\\' . $name . 'Widget';

        if (! is_subclass_of($name, WidgetAbstract::class)) {
            throw new \Exception(sprintf(
                'Widget class `%s` not available!', $name
            ));
        }

        return $name;
    }
protected function getWidgetPath()
    {
        $name = html_clean($this->widgetName);
        $name = str_replace(['.', '_'], ' ', $name);
        $name = str_replace(' ', '', ucwords($name));
        $name = $this->namespace . '\\' . $name . 'Widget';

        if (! is_subclass_of($name, WidgetAbstract::class)) {
            throw new \Exception(sprintf(
                'Widget class `%s` not available!', $name
            ));
        }

        return $name;
    }
protected function getWidgetPath ( ) { $ name = html_clean ( $ this -> widgetName ) ; $ name = str_replace ( [ '.' , '_' ] , ' ' , $ name ) ; $ name = str_replace ( ' ' , '' , ucwords ( $ name ) ) ; $ name = $ this -> namespace . '\\' . $ name . 'Widget' ; if ( ! is_subclass_of ( $ name , WidgetAbstract :: class ) ) { throw new \ Exception ( sprintf ( 'Widget class `%s` not available!' , $ name ) ) ; } return $ name ; }
Get full path with name to widget class location.

@throws \Exception
@return string
Get full path with name to widget class location .