Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExportAbandonedExcel.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
19  public function execute()
20  {
21  $fileName = 'shopcart_abandoned.xml';
22  $content = $this->_view->getLayout()->createBlock(
23  \Magento\Reports\Block\Adminhtml\Shopcart\Abandoned\Grid::class
24  )->getExcelFile(
25  $fileName
26  );
27 
28  return $this->_fileFactory->create($fileName, $content, DirectoryList::VAR_DIR);
29  }
30 }
$fileName
Definition: translate.phtml:15