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-wishlist
Observer
CustomerLogout.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Wishlist\Observer
;
8
9
use
Magento\Framework\Event\Observer
;
10
use
Magento\Framework\Event\ObserverInterface
;
11
use
Magento\Customer\Model\Session
;
12
17
class
CustomerLogout
implements
ObserverInterface
18
{
22
protected
$customerSession
;
23
27
public
function
__construct
(
Session
$customerSession
)
28
{
29
$this->customerSession =
$customerSession
;
30
}
31
38
public
function
execute
(
Observer
$observer
)
39
{
40
$this->customerSession->setWishlistItemCount(0);
41
}
42
}
Magento\Wishlist\Observer
Definition:
AddToCart.php:7
Magento\Customer\Model\Session
Definition:
Storage.php:8
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Wishlist\Observer\CustomerLogout\__construct
__construct(Session $customerSession)
Definition:
CustomerLogout.php:27
Magento\Customer\Model\Session
Definition:
Session.php:22
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Wishlist\Observer\CustomerLogout
Definition:
CustomerLogout.php:17
Magento\Wishlist\Observer\CustomerLogout\$customerSession
$customerSession
Definition:
CustomerLogout.php:22
Magento\Framework\Event\Observer
Definition:
Collection.php:12
Magento\Wishlist\Observer\CustomerLogout\execute
execute(Observer $observer)
Definition:
CustomerLogout.php:38
Magento\Framework\Event\Observer
Definition:
Observer.php:14