App\Source\ModelFieldBuilder\UploadFile::__toString PHP Method

__toString() public method

public __toString ( )
    public function __toString()
    {
        $str = "";
        if ($this->value) {
            $str = '<small class="text-danger">Current file: ' . $this->value . '</small>';
        }
        $str .= sprintf('<input class="file_upload" type="%s" name="%s" #>', $this->type, $this->name);
        return $this->toString($str);
    }