Contao\ModuleFlash::generate PHP Method

generate() public method

Extend the parent method
public generate ( ) : string
return string
    public function generate()
    {
        if (TL_MODE == 'BE') {
            return $this->altContent;
        }
        if ($this->source != 'external') {
            if ($this->singleSRC == '') {
                return '';
            }
            $objFile = \FilesModel::findByUuid($this->singleSRC);
            if ($objFile === null || !is_file(TL_ROOT . '/' . $objFile->path)) {
                return '';
            }
            $this->singleSRC = $objFile->path;
        }
        return parent::generate();
    }