CSV::getDownloadFilename PHP Method

getDownloadFilename() public method

Used for constructing the filename of the filename when downloading.
See also: ExportTypePlugin::getDownloadFilename()
public getDownloadFilename ( Generator $generator ) : string
$generator Generator
return string
    public function getDownloadFilename($generator)
    {
        $time = date("M-j-Y");
        return "data{$time}.csv";
    }