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-eav
Model
Entity
Setup
PropertyMapper.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Eav\Model\Entity\Setup
;
9
10
use
Magento\Catalog\Model\ResourceModel\Eav\Attribute
;
11
12
class
PropertyMapper
extends
PropertyMapperAbstract
13
{
22
public
function
map
(array $input,
$entityTypeId
)
23
{
24
return
[
25
'attribute_model'
=> $this->
_getValue
($input,
'attribute_model'
),
26
'backend_model'
=> $this->
_getValue
($input,
'backend'
),
27
'backend_type'
=> $this->
_getValue
($input,
'type'
,
'varchar'
),
28
'backend_table'
=> $this->
_getValue
($input,
'table'
),
29
'frontend_model'
=> $this->
_getValue
($input,
'frontend'
),
30
'frontend_input'
=> $this->
_getValue
($input,
'input'
,
'text'
),
31
'frontend_label'
=> $this->
_getValue
($input,
'label'
),
32
'frontend_class'
=> $this->
_getValue
($input,
'frontend_class'
),
33
'source_model'
=> $this->
_getValue
($input,
'source'
),
34
'is_required'
=> $this->
_getValue
($input,
'required'
, 1),
35
'is_user_defined'
=> $this->
_getValue
($input,
'user_defined'
, 0),
36
'default_value'
=> $this->
_getValue
($input,
'default'
),
37
'is_unique'
=> $this->
_getValue
($input,
'unique'
, 0),
38
'note'
=> $this->
_getValue
($input,
'note'
),
39
'is_global'
=> $this->
_getValue
(
40
$input,
41
'global'
,
42
\
Magento
\Eav\Model\
Entity
\
Attribute
\ScopedAttributeInterface::SCOPE_GLOBAL
43
)
44
];
45
}
46
}
$entityTypeId
$entityTypeId
Definition:
attribute_set_with_renamed_group.php:28
Magento\Eav\Model\Entity\Setup\PropertyMapper\map
map(array $input, $entityTypeId)
Definition:
PropertyMapper.php:22
Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract
Definition:
PropertyMapperAbstract.php:10
Magento\Eav\Model\Entity
Definition:
Entity.php:12
Magento
Magento\Eav\Model\Entity\Setup
Definition:
Context.php:6
Magento\Catalog\Model\ResourceModel\Eav\Attribute
Definition:
Attribute.php:31
Magento\Eav\Model\Entity\Setup\PropertyMapper
Definition:
PropertyMapper.php:12
Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract\_getValue
_getValue($array, $key, $default=null)
Definition:
PropertyMapperAbstract.php:20