getOutputMode() === 'print'); } /** * Return the download filename. This should be the "clean" name, not * a munged temporary filename. * * For 'print' there is no attachment. * * @return string */ public function getFileName():string { return ''; } /** * Return the html body of the email. * * @return string */ public function getMailBody():string { return $this->getOutputString(); } /** * Return the report contents as a string. * * @return string */ public function getOutputString():string { return $this->getForm()->compileContent(); } /** * Set headers as appropriate and send the output to the browser. * Here the headers are already text/html. */ public function download() { echo $this->getOutputString(); } /** * Override so links displayed in the browser are relative. * * @return bool */ public function isAbsoluteUrl():bool { return FALSE; } }