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
Model
Cart
RequestInfoFilter.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Model\Cart
;
8
12
class
RequestInfoFilter
implements
RequestInfoFilterInterface
13
{
17
private
$filterList;
18
22
public
function
__construct
(
23
array $filterList = []
24
) {
25
$this->filterList = $filterList;
26
}
27
34
public
function
filter
(\
Magento
\Framework\
DataObject
$params
)
35
{
36
foreach
($this->filterList as $filterKey) {
38
if
(
$params
->hasData($filterKey)) {
39
$params
->unsetData($filterKey);
40
}
41
}
42
return
$this;
43
}
44
}
Magento\Checkout\Model\Cart\RequestInfoFilterInterface
Definition:
RequestInfoFilterInterface.php:14
Magento\Checkout\Model\Cart
Definition:
CartInterface.php:6
Magento\Checkout\Model\Cart\RequestInfoFilter\__construct
__construct(array $filterList=[])
Definition:
RequestInfoFilter.php:22
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento
Magento\Checkout\Model\Cart\RequestInfoFilter
Definition:
RequestInfoFilter.php:12
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Magento\Checkout\Model\Cart\RequestInfoFilterInterface\filter
filter(\Magento\Framework\DataObject $params)