Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExportAccountsCsv.php
Go to the documentation of this file.
1 <?php
8 
12 
14 {
20  public function execute()
21  {
22  $this->_view->loadLayout();
23  $fileName = 'new_accounts.csv';
25  $exportBlock = $this->_view->getLayout()->getChildBlock('adminhtml.report.grid', 'grid.export');
26  return $this->_fileFactory->create(
27  $fileName,
28  $exportBlock->getCsvFile(),
30  );
31  }
32 }
$fileName
Definition: translate.phtml:15