ExcelDataFormatter::getUseLabelsAsHeaders
Accessor for UseLabelsAsHeaders. If this is `true`, the data formatter will call {@link DataObject::fieldLabel()} to pick the header strings. If it's set to false, it will use the raw field name.
You can define this for a specific ExcelDataFormatter instance with `setUseLabelsAsHeaders`. You can set the default for all ExcelDataFormatter instance in your YML config file: ``` ExcelDataFormatter: UseLabelsAsHeaders: true ``` Otherwise, the data formatter will default to false.
Signature
public function getUseLabelsAsHeaders()
Returns
- bool