protected function isFormWidget($fieldType)
    {
        if ($fieldType === null) {
            return false;
        }

        if (strpos($fieldType, '\\')) {
            return true;
        }

        $widgetClass = $this->widgetManager->resolveFormWidget($fieldType);

        if (!class_exists($widgetClass)) {
            return false;
        }

        if (is_subclass_of($widgetClass, 'Backend\Classes\FormWidgetBase')) {
            return true;
        }

        return false;
    }
protected function isFormWidget($fieldType)
    {
        if ($fieldType === null) {
            return false;
        }

        if (strpos($fieldType, '\\')) {
            return true;
        }

        $widgetClass = $this->widgetManager->resolveFormWidget($fieldType);

        if (!class_exists($widgetClass)) {
            return false;
        }

        if (is_subclass_of($widgetClass, 'Backend\Classes\FormWidgetBase')) {
            return true;
        }

        return false;
    }
protected function isFormWidget ( $ fieldType ) { if ( $ fieldType === null ) { return false ; } if ( strpos ( $ fieldType , '\\' ) ) { return true ; } $ widgetClass = $ this -> widgetManager -> resolveFormWidget ( $ fieldType ) ; if ( ! class_exists ( $ widgetClass ) ) { return false ; } if ( is_subclass_of ( $ widgetClass , 'Backend\Classes\FormWidgetBase' ) ) { return true ; } return false ; }
Check if a field type is a widget or not

@param  string  $fieldType
@return boolean
Check if a field type is a widget or not