src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php
protected function getWidgetClass(PropertyInterface $property)
    {
        if (isset(static::$widgetMapping[$property->getWidgetType()])) {
            return static::$widgetMapping[$property->getWidgetType()];
        }

        if (!isset($GLOBALS['BE_FFL'][$property->getWidgetType()])) {
            return null;
        }

        $className = $GLOBALS['BE_FFL'][$property->getWidgetType()];
        if (!\class_exists($className)) {
            return null;
        }

        return $className;
    }
protected function getWidgetClass(PropertyInterface $property)
    {
        if (isset(static::$widgetMapping[$property->getWidgetType()])) {
            return static::$widgetMapping[$property->getWidgetType()];
        }

        if (!isset($GLOBALS['BE_FFL'][$property->getWidgetType()])) {
            return null;
        }

        $className = $GLOBALS['BE_FFL'][$property->getWidgetType()];
        if (!\class_exists($className)) {
            return null;
        }

        return $className;
    }
protected function getWidgetClass ( PropertyInterface $ property ) { if ( isset ( static :: $ widgetMapping [ $ property -> getWidgetType ( ) ] ) ) { return static :: $ widgetMapping [ $ property -> getWidgetType ( ) ] ; } if ( ! isset ( $ GLOBALS [ 'BE_FFL' ] [ $ property -> getWidgetType ( ) ] ) ) { return null ; } $ className = $ GLOBALS [ 'BE_FFL' ] [ $ property -> getWidgetType ( ) ] ; if ( ! \ class_exists ( $ className ) ) { return null ; } return $ className ; }
Try to resolve the class name for the widget.

@param PropertyInterface $property The property to get the widget class name for.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Try to resolve the class name for the widget .