Form.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Customer Form Model
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Customer\Model;
  12. class Form extends \Magento\Eav\Model\Form
  13. {
  14. /**
  15. * XML configuration paths for "Disable autocomplete on storefront" property
  16. */
  17. const XML_PATH_ENABLE_AUTOCOMPLETE = 'customer/password/autocomplete_on_storefront';
  18. /**
  19. * Current module pathname
  20. *
  21. * @var string
  22. */
  23. protected $_moduleName = 'Magento_Customer';
  24. /**
  25. * Current EAV entity type code
  26. *
  27. * @var string
  28. */
  29. protected $_entityTypeCode = 'customer';
  30. /**
  31. * Get EAV Entity Form Attribute Collection for Customer
  32. * exclude 'created_at'
  33. *
  34. * @return \Magento\Customer\Model\ResourceModel\Form\Attribute\Collection
  35. */
  36. protected function _getFormAttributeCollection()
  37. {
  38. return parent::_getFormAttributeCollection()->addFieldToFilter('attribute_code', ['neq' => 'created_at']);
  39. }
  40. }