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-customer
Ui
Component
Listing
Column
InlineEditUpdater.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Ui\Component\Listing\Column
;
7
8
use
Magento\Framework\View\Element\UiComponentInterface
;
9
10
class
InlineEditUpdater
11
{
15
protected
$validationRules
;
16
22
protected
$editableFields
= [
23
'text'
,
24
'boolean'
,
25
'select'
,
26
'date'
,
27
];
28
32
public
function
__construct
(
33
ValidationRules
$validationRules
34
) {
35
$this->validationRules =
$validationRules
;
36
}
37
47
public
function
applyEditing
(
48
UiComponentInterface
$column,
49
$frontendInput,
50
array
$validationRules
,
51
$isRequired =
false
52
) {
53
if
(in_array($frontendInput, $this->editableFields)) {
54
$config
= $column->
getConfiguration
();
55
if
(!(isset(
$config
[
'editor'
]) && isset(
$config
[
'editor'
][
'editorType'
]))) {
56
if
(isset(
$config
[
'editor'
]) && is_string(
$config
[
'editor'
])) {
57
$editorType =
$config
[
'editor'
];
58
}
elseif
(isset(
$config
[
'dataType'
])) {
59
$editorType =
$config
[
'dataType'
];
60
}
else
{
61
$editorType = $frontendInput;
62
}
63
64
$config
[
'editor'
] = [
65
'editorType'
=> $editorType
66
];
67
}
68
69
$validationRules
= $this->validationRules->getValidationRules($isRequired,
$validationRules
);
70
if
(!empty(
$config
[
'editor'
][
'validation'
])) {
71
$validationRules
= array_merge(
$config
[
'editor'
][
'validation'
],
$validationRules
);
72
}
73
$config
[
'editor'
][
'validation'
] =
$validationRules
;
74
$column->
setData
(
'config'
,
$config
);
75
}
76
return
$column;
77
}
78
}
Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater\$validationRules
$validationRules
Definition:
InlineEditUpdater.php:15
Magento\Customer\Ui\Component\Listing\Column
Definition:
AccountLock.php:6
Magento\Framework\View\Element\UiComponentInterface
Definition:
UiComponentInterface.php:16
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater
Definition:
InlineEditUpdater.php:10
$config
$config
Definition:
fraud_order.php:17
Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater\__construct
__construct(ValidationRules $validationRules)
Definition:
InlineEditUpdater.php:32
Magento\Customer\Ui\Component\Listing\Column\ValidationRules
Definition:
ValidationRules.php:10
Magento\Framework\View\Element\UiComponentInterface\getConfiguration
getConfiguration()
Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater\applyEditing
applyEditing(UiComponentInterface $column, $frontendInput, array $validationRules, $isRequired=false)
Definition:
InlineEditUpdater.php:47
Magento\Framework\View\Element\UiComponentInterface\setData
setData($key, $value=null)
Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater\$editableFields
$editableFields
Definition:
InlineEditUpdater.php:22