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
Model
Session.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Newsletter\Model
;
7
11
class
Session
extends
\Magento\Framework\Session\SessionManager
12
{
19
public
function
addError
(
$message
)
20
{
21
$this->setErrorMessage(
$message
);
22
return
$this;
23
}
24
31
public
function
addSuccess
(
$message
)
32
{
33
$this->setSuccessMessage(
$message
);
34
return
$this;
35
}
36
42
public
function
getError
()
43
{
44
$message
= $this->getErrorMessage();
45
$this->unsErrorMessage();
46
return
$message
;
47
}
48
54
public
function
getSuccess
()
55
{
56
$message
= $this->getSuccessMessage();
57
$this->unsSuccessMessage();
58
return
$message
;
59
}
60
}
Magento\Newsletter\Model\Session\addSuccess
addSuccess($message)
Definition:
Session.php:31
Magento\Newsletter\Model\Session\getSuccess
getSuccess()
Definition:
Session.php:54
$message
$message
Definition:
notifications.php:7
Magento\Newsletter\Model\Session\getError
getError()
Definition:
Session.php:42
Magento\Newsletter\Model\Session
Definition:
Session.php:11
Magento\Framework\Session\SessionManager
Definition:
SessionManager.php:16
Magento\Newsletter\Model
Magento\Newsletter\Model\Session\addError
addError($message)
Definition:
Session.php:19