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
Controller
Adminhtml
Index
Wishlist.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Controller\Adminhtml\Index
;
7
8
class
Wishlist
extends
\Magento\Customer\Controller\Adminhtml\Index
9
{
15
public
function
execute
()
16
{
17
$customerId
= $this->
initCurrentCustomer
();
18
$itemId = (int)$this->
getRequest
()->getParam(
'delete'
);
19
if
(
$customerId
&& $itemId) {
20
try
{
21
$this->_objectManager->create(\
Magento
\
Wishlist
\Model\Item::class)->load($itemId)->delete();
22
}
catch
(\Exception $exception) {
23
$this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($exception);
24
}
25
}
26
27
$resultLayout = $this->resultLayoutFactory->create();
28
return
$resultLayout;
29
}
30
}
Magento\Customer\Controller\Adminhtml\Index\Wishlist
Definition:
Wishlist.php:8
Magento\Customer\Controller\Adminhtml\Index
Definition:
MassAssignGroupTest.php:8
Magento\Customer\Controller\Adminhtml\Index\initCurrentCustomer
initCurrentCustomer()
Definition:
Index.php:259
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
Magento\Customer\Controller\Adminhtml\Index\Wishlist\execute
execute()
Definition:
Wishlist.php:15
$customerId
$customerId
Definition:
quote_with_customer.php:16
Magento
Magento\Customer\Controller\Adminhtml\Index
Definition:
Index.php:27