17 lines
401 B
PHP
17 lines
401 B
PHP
<?php
|
|
|
|
namespace Stemcell\Sales\Controller\Adminhtml\Export;
|
|
|
|
use Magento\Framework\Exception\LocalizedException;
|
|
|
|
class GridToCsv extends \Magento\Ui\Controller\Adminhtml\Export\GridToCsv
|
|
{
|
|
/**
|
|
* @throws LocalizedException
|
|
*/
|
|
public function execute()
|
|
{
|
|
return $this->fileFactory->create('export-'.date('YmdHis').'.xlsx', $this->converter->getCsvFile(), 'var');
|
|
}
|
|
}
|