CakePdf\View\PdfView::getFilename PHP Method

getFilename() public method

Get or build a filename for forced download
public getFilename ( ) : string
return string The filename
    public function getFilename()
    {
        if (isset($this->pdfConfig['filename'])) {
            return $this->pdfConfig['filename'];
        }
        $id = current($this->request->params['pass']);
        return strtolower($this->viewPath) . $id . '.pdf';
    }