Address.php 681 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Model\Config\Backend\Show;
  7. use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
  8. /**
  9. * Customer Show Address Model
  10. *
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. */
  13. class Address extends Customer
  14. {
  15. /**
  16. * Retrieve attribute objects
  17. *
  18. * @return AbstractAttribute[]
  19. */
  20. protected function _getAttributeObjects()
  21. {
  22. $result = parent::_getAttributeObjects();
  23. $result[] = $this->_eavConfig->getAttribute('customer_address', $this->_getAttributeCode());
  24. return $result;
  25. }
  26. }