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
System
Config
ResolutionRules.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Block\Adminhtml\System\Config
;
7
8
use
Magento\Backend\Block\Template
;
9
use
Magento\Backend\Block\Template\Context
;
10
use
Magento\Paypal\Model\Config\Rules\Reader
;
11
18
class
ResolutionRules
extends
Template
19
{
23
private
$rulesReader;
24
32
public
function
__construct
(
33
Context
$context,
34
Reader
$rulesReader,
35
array
$data
= []
36
) {
37
parent::__construct($context,
$data
);
38
$this->rulesReader = $rulesReader;
39
}
40
46
public
function
getJson
()
47
{
48
return
json_encode($this->rulesReader->read(), JSON_FORCE_OBJECT);
49
}
50
}
Magento\Backend\Block\Template\Context
Definition:
Context.php:23
Magento\Paypal\Block\Adminhtml\System\Config
Definition:
ApiWizard.php:6
Magento\Paypal\Block\Adminhtml\System\Config\ResolutionRules\getJson
getJson()
Definition:
ResolutionRules.php:46
Magento\Paypal\Model\Config\Rules\Reader
Definition:
Reader.php:18
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Paypal\Block\Adminhtml\System\Config\ResolutionRules
Definition:
ResolutionRules.php:18
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Paypal\Block\Adminhtml\System\Config\ResolutionRules\__construct
__construct(Context $context, Reader $rulesReader, array $data=[])
Definition:
ResolutionRules.php:32
Magento\Backend\Block\Template
Definition:
Context.php:6