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-checkout
Observer
UnsetAllObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Observer
;
7
8
use
Magento\Framework\Event\ObserverInterface
;
9
10
class
UnsetAllObserver
implements
ObserverInterface
11
{
15
protected
$checkoutSession
;
16
21
public
function
__construct
(\
Magento
\Checkout\Model\Session
$checkoutSession
)
22
{
23
$this->checkoutSession =
$checkoutSession
;
24
}
25
31
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
32
{
33
$this->checkoutSession->clearQuote()->clearStorage();
34
}
35
}
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Checkout\Observer\UnsetAllObserver\__construct
__construct(\Magento\Checkout\Model\Session $checkoutSession)
Definition:
UnsetAllObserver.php:21
Magento\Checkout\Observer\UnsetAllObserver\$checkoutSession
$checkoutSession
Definition:
UnsetAllObserver.php:15
Magento\Checkout\Observer\UnsetAllObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
UnsetAllObserver.php:31
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Checkout\Observer
Definition:
LoadCustomerQuoteObserver.php:6
Magento
Magento\Checkout\Observer\UnsetAllObserver
Definition:
UnsetAllObserver.php:10