protected function getFieldInstance($value)
    {
        if ($value instanceof Field) {
            return $value;
        }

        $container = new $this->type();
        $container->value = $value;

        return $container;
    }
protected function getFieldInstance($value)
    {
        if ($value instanceof Field) {
            return $value;
        }

        $container = new $this->type();
        $container->value = $value;

        return $container;
    }
protected function getFieldInstance ( $ value ) { if ( $ value instanceof Field ) { return $ value ; } $ container = new $ this -> type ( ) ; $ container -> value = $ value ; return $ container ; }
Get a field from a value

@param Field|mixed $value
@return Field
Get a field from a value