Contao\FormSubmit::parse PHP Method

parse() public method

Parse the template file and return it as string
public parse ( array $arrAttributes = null ) : string
$arrAttributes array An optional attributes array
return string The template markup
    public function parse($arrAttributes = null)
    {
        if ($this->imageSubmit && $this->singleSRC != '') {
            $objModel = \FilesModel::findByUuid($this->singleSRC);
            if ($objModel !== null && is_file(TL_ROOT . '/' . $objModel->path)) {
                $this->src = $objModel->path;
            }
        }
        return parent::parse($arrAttributes);
    }