public function getIcon()
    {
        $classNamespaces = explode("\\", static::class);
        $shortClass = end($classNamespaces);

        $resource = ModuleLoader::getModule('silverstripe/userforms')
            ->getResource('images/' . strtolower($shortClass) . '.png');

        if (!$resource->exists()) {
            return '';
        }

        return $resource->getURL();
    }
public function getIcon()
    {
        $classNamespaces = explode("\\", static::class);
        $shortClass = end($classNamespaces);

        $resource = ModuleLoader::getModule('silverstripe/userforms')
            ->getResource('images/' . strtolower($shortClass) . '.png');

        if (!$resource->exists()) {
            return '';
        }

        return $resource->getURL();
    }
public function getIcon ( ) { $ classNamespaces = explode ( "\\" , static :: class ) ; $ shortClass = end ( $ classNamespaces ) ; $ resource = ModuleLoader :: getModule ( 'silverstripe/userforms' ) -> getResource ( 'images/' . strtolower ( $ shortClass ) . '.png' ) ; if ( ! $ resource -> exists ( ) ) { return '' ; } return $ resource -> getURL ( ) ; }
Get the path to the icon for this field type, relative to the site root.

@return string
Get the path to the icon for this field type relative to the site root .