Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-newsletter
Controller
Adminhtml
Subscriber
ExportCsv.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Newsletter\Controller\Adminhtml\Subscriber
;
8
9
use
Magento\Framework\App\ResponseInterface
;
10
use
Magento\Framework\App\Filesystem\DirectoryList
;
11
12
class
ExportCsv
extends
\Magento\Newsletter\Controller\Adminhtml\Subscriber
13
{
19
public
function
execute
()
20
{
21
$this->_view->loadLayout();
22
$fileName
=
'subscribers.csv'
;
23
$content
= $this->_view->getLayout()->getChildBlock(
'adminhtml.newslettrer.subscriber.grid'
,
'grid.export'
);
24
25
return
$this->_fileFactory->create(
26
$fileName
,
27
$content
->getCsvFile(
$fileName
),
28
DirectoryList::VAR_DIR
29
);
30
}
31
}
Magento\Newsletter\Controller\Adminhtml\Subscriber
Definition:
Subscriber.php:11
$fileName
$fileName
Definition:
translate.phtml:15
Magento\Newsletter\Controller\Adminhtml\Subscriber\ExportCsv
Definition:
ExportCsv.php:12
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
$content
$content
Definition:
downloadable_product_with_files_and_sample_url.php:93
Magento\Newsletter\Controller\Adminhtml\Subscriber
Definition:
ExportCsv.php:7
Magento\Framework\App\ResponseInterface
Definition:
ResponseInterface.php:14
Magento\Newsletter\Controller\Adminhtml\Subscriber\ExportCsv\execute
execute()
Definition:
ExportCsv.php:19