Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RequestInfoFilter.php
Go to the documentation of this file.
1 <?php
8 
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 }
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18
filter(\Magento\Framework\DataObject $params)