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-paypal
Block
Adminhtml
Store
SwitcherPlugin.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Block\Adminhtml\Store
;
7
8
use
Magento\Backend\Block\Store\Switcher
as
StoreSwitcherBlock
;
9
use
Magento\Paypal\Model\Config\StructurePlugin
as ConfigStructurePlugin;
10
14
class
SwitcherPlugin
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
}
Magento\Paypal\Block\Adminhtml\Store\SwitcherPlugin
Definition:
SwitcherPlugin.php:14
Magento\Paypal\Block\Adminhtml\Store
Definition:
SwitcherPlugin.php:6
Magento\Paypal\Block\Adminhtml\Store\SwitcherPlugin\beforeGetUrl
beforeGetUrl(StoreSwitcherBlock $subject, $route='', $params=[])
Definition:
SwitcherPlugin.php:24
Magento\Backend\Block\Store\Switcher
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Magento\Paypal\Model\Config\StructurePlugin
Definition:
StructurePlugin.php:19