GridFieldExcelExportAction::setHeader
Helper function for building the right header to get the file downloaded.
Signature
protected function setHeader(GridField
$gridField,
string
$ext,
[string
$filename = ''] )
Parameters
$gridField
— object
$ext
— string- Extension the file should have
$filename
— string- Optional of the file (without the extension). Defaults to the grid field object type.