Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (AddressHelper $addressHelper, Session $customerSession, CustomerRepository $customerRepository, DirectoryHelper $directoryHelper) | |
merge ($elements, $providerName, $dataScopePrefix, array $fields=[]) | |
Protected Member Functions | |
getFieldConfig ( $attributeCode, array $attributeConfig, array $additionalConfig, $providerName, $dataScopePrefix) | |
mergeConfigurationNode ($nodeName, array $mainSource, array $additionalSource) | |
isFieldVisible ($attributeCode, array $attributeConfig, array $additionalConfig=[]) | |
getMultilineFieldConfig ($attributeCode, array $attributeConfig, $providerName, $dataScopePrefix) | |
getDefaultValue ($attributeCode) | |
getCustomer () | |
getFieldOptions ($attributeCode, array $attributeConfig) | |
orderCountryOptions (array $countryOptions) | |
Protected Attributes | |
$formElementMap | |
$templateMap | |
$inputValidationMap | |
Definition at line 13 of file AttributeMerger.php.
__construct | ( | AddressHelper | $addressHelper, |
Session | $customerSession, | ||
CustomerRepository | $customerRepository, | ||
DirectoryHelper | $directoryHelper | ||
) |
AddressHelper | $addressHelper | |
Session | $customerSession | |
CustomerRepository | $customerRepository | |
DirectoryHelper | $directoryHelper |
Definition at line 92 of file AttributeMerger.php.
|
protected |
Definition at line 351 of file AttributeMerger.php.
|
protected |
string | $attributeCode |
Definition at line 315 of file AttributeMerger.php.
|
protected |
Retrieve UI field configuration for given attribute
string | $attributeCode | |
array | $attributeConfig | |
array | $additionalConfig | field configuration provided via layout XML |
string | $providerName | name of the storage container used by UI component |
string | $dataScopePrefix |
Definition at line 144 of file AttributeMerger.php.
|
protected |
Retrieve field options from attribute configuration
string | $attributeCode | |
array | $attributeConfig |
Definition at line 371 of file AttributeMerger.php.
|
protected |
Retrieve field configuration for street address attribute
string | $attributeCode | |
array | $attributeConfig | |
string | $providerName | name of the storage container used by UI component |
string | $dataScopePrefix |
Definition at line 265 of file AttributeMerger.php.
|
protected |
Check if address attribute is visible on frontend
string | $attributeCode | |
array | $attributeConfig | |
array | $additionalConfig | field configuration provided via layout XML |
Definition at line 242 of file AttributeMerger.php.
merge | ( | $elements, | |
$providerName, | |||
$dataScopePrefix, | |||
array | $fields = [] |
||
) |
Merge additional address fields for given provider
array | $elements | |
string | $providerName | name of the storage container used by UI component |
string | $dataScopePrefix | |
array | $fields |
Definition at line 114 of file AttributeMerger.php.
|
protected |
Merge two configuration nodes recursively
string | $nodeName | |
array | $mainSource | |
array | $additionalSource |
Definition at line 227 of file AttributeMerger.php.
|
protected |
Order country options. Move top countries to the beginning of the list.
array | $countryOptions |
Definition at line 383 of file AttributeMerger.php.
|
protected |
Definition at line 20 of file AttributeMerger.php.
|
protected |
Definition at line 45 of file AttributeMerger.php.
|
protected |
Definition at line 35 of file AttributeMerger.php.