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-customer
Block
Newsletter.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Block
;
7
8
use
Magento\Customer\Api\AccountManagementInterface
;
9
use
Magento\Customer\Api\CustomerRepositoryInterface
;
10
18
class
Newsletter
extends
\Magento\Customer\Block\Account\Dashboard
19
{
23
protected
$_template
=
'Magento_Customer::form/newsletter.phtml'
;
24
29
public
function
getIsSubscribed
()
30
{
31
return
$this->
getSubscriptionObject
()->isSubscribed();
32
}
33
39
public
function
getAction
()
40
{
41
return
$this->
getUrl
(
'newsletter/manage/save'
);
42
}
43
}
Magento\Customer\Block\Newsletter\getAction
getAction()
Definition:
Newsletter.php:39
Magento\Customer\Block\Newsletter
Definition:
Newsletter.php:18
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Customer\Api\CustomerRepositoryInterface
Definition:
CustomerRepositoryInterface.php:15
Magento\Customer\Block
Magento\Customer\Block\Account\Dashboard
Definition:
Dashboard.php:17
Magento\Customer\Block\Account\Dashboard\getSubscriptionObject
getSubscriptionObject()
Definition:
Dashboard.php:148
Magento\Customer\Api\AccountManagementInterface
Definition:
AccountManagementInterface.php:17
Magento\Customer\Block\Newsletter\$_template
$_template
Definition:
Newsletter.php:23
Magento\Customer\Block\Newsletter\getIsSubscribed
getIsSubscribed()
Definition:
Newsletter.php:29