JSON::getDownloadFilename PHP Méthode

getDownloadFilename() public méthode

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