Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ModuleDataSetupInterface $setup, Context $context, CacheInterface $cache, CollectionFactory $attrGroupCollectionFactory, Config $eavConfig) | |
installCustomerForms () | |
getDefaultEntities () | |
getEavConfig () | |
upgradeAttributes (array $entityAttributes) | |
![]() | |
__construct (ModuleDataSetupInterface $setup, Context $context, CacheInterface $cache, CollectionFactory $attrGroupCollectionFactory) | |
getSetup () | |
getAttributeGroupCollectionFactory () | |
cleanCache () | |
installDefaultGroupIds () | |
addEntityType ($code, array $params) | |
updateEntityType ($code, $field, $value=null) | |
getEntityType ($id, $field=null) | |
getEntityTypeId ($entityTypeId) | |
removeEntityType ($id) | |
getAttributeSetSortOrder ($entityTypeId, $sortOrder=null) | |
addAttributeSet ($entityTypeId, $name, $sortOrder=null, $setId=null) | |
updateAttributeSet ($entityTypeId, $id, $field, $value=null) | |
getAttributeSet ($entityTypeId, $id, $field=null) | |
getAttributeSetId ($entityTypeId, $setId) | |
removeAttributeSet ($entityTypeId, $id) | |
setDefaultSetToEntityType ($entityType, $attributeSet='Default') | |
getAllAttributeSetIds ($entityTypeId=null) | |
getDefaultAttributeSetId ($entityType) | |
getAttributeGroupSortOrder ($entityTypeId, $setId, $sortOrder=null) | |
addAttributeGroup ($entityTypeId, $setId, $name, $sortOrder=null) | |
convertToAttributeGroupCode ($groupName) | |
updateAttributeGroup ($entityTypeId, $setId, $id, $field, $value=null) | |
getAttributeGroup ($entityTypeId, $setId, $id, $field=null) | |
getAttributeGroupByCode ($entityTypeId, $setId, $code, $field=null) | |
getAttributeGroupId ($entityTypeId, $setId, $groupId) | |
removeAttributeGroup ($entityTypeId, $setId, $id) | |
getDefaultAttributeGroupId ($entityType, $attributeSetId=null) | |
getAttributesNumberInGroup ($entityTypeId, $setId, $groupId) | |
addAttribute ($entityTypeId, $code, array $attr) | |
addAttributeOption ($option) | |
updateAttribute ($entityTypeId, $id, $field, $value=null, $sortOrder=null) | |
getAttribute ($entityTypeId, $id, $field=null) | |
getAttributeId ($entityTypeId, $id) | |
getAttributeTable ($entityTypeId, $id) | |
removeAttribute ($entityTypeId, $code) | |
getAttributeSortOrder ($entityTypeId, $setId, $groupId, $sortOrder=null) | |
addAttributeToSet ($entityTypeId, $setId, $groupId, $attributeId, $sortOrder=null) | |
addAttributeToGroup ($entityType, $setId, $groupId, $attributeId, $sortOrder=null) | |
getDefaultEntities () | |
installEntities ($entities=null) | |
Protected Attributes | |
$eavConfig | |
@codeCoverageIgnore @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 21 of file CustomerSetup.php.
__construct | ( | ModuleDataSetupInterface | $setup, |
Context | $context, | ||
CacheInterface | $cache, | ||
CollectionFactory | $attrGroupCollectionFactory, | ||
Config | $eavConfig | ||
) |
Init
ModuleDataSetupInterface | $setup | |
Context | $context | |
CacheInterface | $cache | |
CollectionFactory | $attrGroupCollectionFactory | |
Config | $eavConfig |
Definition at line 39 of file CustomerSetup.php.
getDefaultEntities | ( | ) |
Retrieve default entities: customer, customer_address
Definition at line 126 of file CustomerSetup.php.
getEavConfig | ( | ) |
installCustomerForms | ( | ) |
Add customer attributes to customer forms
Definition at line 57 of file CustomerSetup.php.
upgradeAttributes | ( | array | $entityAttributes | ) |
Update attributes for customer.
array | $entityAttributes |
Definition at line 499 of file CustomerSetup.php.
|
protected |
Definition at line 28 of file CustomerSetup.php.