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
Model
ResourceModel
Setup
PropertyMapper.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Customer\Model\ResourceModel\Setup
;
9
10
use
Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract
;
11
12
class
PropertyMapper
extends
PropertyMapperAbstract
13
{
23
public
function
map
(array $input,
$entityTypeId
)
24
{
25
return
[
26
'is_visible'
=> $this->
_getValue
($input,
'visible'
, 1),
27
'is_system'
=> $this->
_getValue
($input,
'system'
, 1),
28
'input_filter'
=> $this->
_getValue
($input,
'input_filter'
,
null
),
29
'multiline_count'
=> $this->
_getValue
($input,
'multiline_count'
, 0),
30
'validate_rules'
=> $this->
_getValue
($input,
'validate_rules'
,
null
),
31
'data_model'
=> $this->
_getValue
($input,
'data'
,
null
),
32
'sort_order'
=> $this->
_getValue
($input,
'position'
, 0),
33
'is_used_in_grid'
=> $this->
_getValue
($input,
'is_used_in_grid'
, 0),
34
'is_visible_in_grid'
=> $this->
_getValue
($input,
'is_visible_in_grid'
, 0),
35
'is_filterable_in_grid'
=> $this->
_getValue
($input,
'is_filterable_in_grid'
, 0),
36
'is_searchable_in_grid'
=> $this->
_getValue
($input,
'is_searchable_in_grid'
, 0),
37
];
38
}
39
}
$entityTypeId
$entityTypeId
Definition:
attribute_set_with_renamed_group.php:28
Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract
Definition:
PropertyMapperAbstract.php:10
Magento\Customer\Model\ResourceModel\Setup\PropertyMapper\map
map(array $input, $entityTypeId)
Definition:
PropertyMapper.php:23
Magento\Customer\Model\ResourceModel\Setup\PropertyMapper
Definition:
PropertyMapper.php:12
Magento\Customer\Model\ResourceModel\Setup
Definition:
PropertyMapper.php:8
Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract\_getValue
_getValue($array, $key, $default=null)
Definition:
PropertyMapperAbstract.php:20