Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExportXml.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
19  public function execute()
20  {
21  $this->_view->loadLayout();
22  $fileName = 'subscribers.xml';
23  $content = $this->_view->getLayout()->getChildBlock('adminhtml.newslettrer.subscriber.grid', 'grid.export');
24  return $this->_fileFactory->create(
25  $fileName,
26  $content->getExcelFile($fileName),
27  DirectoryList::VAR_DIR
28  );
29  }
30 }
$fileName
Definition: translate.phtml:15