Log in
Model

Csv

Magento\ImportExport\Model\Export\Adapter\Csv

What it does

This class handles CSV file generation for Magento 2's export functionality.

Developers use it when implementing custom export adapters or when the system needs to write product, customer, or other entity data to CSV format.

It manages file operations, header columns, and row writing with configurable delimiters and enclosures.

Public Methods

  • destruct()
  • getContentType()
  • getFileExtension()
  • setHeaderCols()
  • writeRow()