protected function VboExportCsv::generateOutput in VBO export 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Action/VboExportCsv.php \Drupal\vbo_export\Plugin\Action\VboExportCsv::generateOutput()
Override the generateOutput method.
Overrides VboExportBase::generateOutput
File
- src/
Plugin/ Action/ VboExportCsv.php, line 45
Class
- VboExportCsv
- Generates csv.
Namespace
Drupal\vbo_export\Plugin\ActionCode
protected function generateOutput() {
$output = parent::generateOutput();
// BOM needs to be added to UTF-8 encoded csv file
// to make it easier to read by Excel.
$output = chr(0xef) . chr(0xbb) . chr(0xbf) . (string) $output;
return $output;
}