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
Model
Config
Structure
Element
FieldPlugin.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Model\Config\Structure\Element
;
7
8
use
Magento\Framework\App\RequestInterface
;
9
use
Magento\Config\Model\Config\Structure\Element\Field
as FieldConfigStructure;
10
use
Magento\Paypal\Model\Config\StructurePlugin
as ConfigStructurePlugin;
11
15
class
FieldPlugin
16
{
20
private
$request;
21
25
public
function
__construct
(
RequestInterface
$request)
26
{
27
$this->request =
$request
;
28
}
29
37
public
function
afterGetConfigPath
(FieldConfigStructure $subject,
$result
)
38
{
39
if
(!
$result
&& $this->request->getParam(
'section'
) ==
'payment'
) {
40
$result
= preg_replace(
41
'@^('
. implode(
'|'
, ConfigStructurePlugin::getPaypalConfigCountries(
true
)) .
')/@'
,
42
'payment/'
,
43
$subject->getPath()
44
);
45
}
46
47
return
$result
;
48
}
49
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Paypal\Model\Config\Structure\Element\FieldPlugin\afterGetConfigPath
afterGetConfigPath(FieldConfigStructure $subject, $result)
Definition:
FieldPlugin.php:37
Magento\Paypal\Model\Config\Structure\Element\FieldPlugin
Definition:
FieldPlugin.php:15
Magento\Paypal\Model\Config\Structure\Element
Definition:
FieldPlugin.php:6
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Config\Model\Config\Structure\Element\Field
Definition:
Field.php:14
Magento\Paypal\Model\Config\Structure\Element\FieldPlugin\__construct
__construct(RequestInterface $request)
Definition:
FieldPlugin.php:25
Magento\Paypal\Model\Config\StructurePlugin
Definition:
StructurePlugin.php:19