Esempio n. 1
0
 /**
  * Template method used to configure the attribute codes for the custom attributes
  *
  * @return string[]
  */
 protected function getCustomAttributesCodes()
 {
     return array_merge(parent::getCustomAttributesCodes(), [self::CUSTOM_ATTRIBUTE_1, self::CUSTOM_ATTRIBUTE_2, self::CUSTOM_ATTRIBUTE_3]);
 }
Esempio n. 2
0
 /**
  * @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
  * @param AttributeValueFactory $attributeValueFactory
  * @param \Magento\Customer\Api\AddressMetadataInterface $metadataService
  * @param array $data
  */
 public function __construct(\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $attributeValueFactory, \Magento\Customer\Api\AddressMetadataInterface $metadataService, $data = [])
 {
     $this->metadataService = $metadataService;
     parent::__construct($extensionFactory, $attributeValueFactory, $data);
 }