Encore\Admin\Form::findFieldClass PHP Method

findFieldClass() public static method

public static findFieldClass ( $method )
    public static function findFieldClass($method)
    {
        $className = __NAMESPACE__ . '\\Form\\Field\\' . ucfirst($method);
        if (class_exists($className)) {
            return $className;
        }
        if ($method == 'switch') {
            return __NAMESPACE__ . '\\Form\\Field\\SwitchField';
        }
        return false;
    }