AddressOnly.php 608 B

1234567891011121314151617181920212223242526
  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 AddressOnly extends Customer
  14. {
  15. /**
  16. * Retrieve attribute objects
  17. *
  18. * @return AbstractAttribute[]
  19. */
  20. protected function _getAttributeObjects()
  21. {
  22. return [$this->_eavConfig->getAttribute('customer_address', $this->_getAttributeCode())];
  23. }
  24. }