Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SwitcherPlugin.php
Go to the documentation of this file.
1 <?php
7 
9 use Magento\Paypal\Model\Config\StructurePlugin as ConfigStructurePlugin;
10 
15 {
24  public function beforeGetUrl(StoreSwitcherBlock $subject, $route = '', $params = [])
25  {
26  if ($subject->getRequest()->getParam(ConfigStructurePlugin::REQUEST_PARAM_COUNTRY)) {
27  $params[ConfigStructurePlugin::REQUEST_PARAM_COUNTRY] = null;
28  }
29 
30  return [$route, $params];
31  }
32 }
beforeGetUrl(StoreSwitcherBlock $subject, $route='', $params=[])
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18