Fix reorder error from admin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Attribute.php 566B

1 jaar geleden
1 jaar geleden
1 jaar geleden
12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Baldarian\AdminReorder\Rewrite\Magento\Eav\Model;
  8. class Attribute extends \Magento\Eav\Model\Attribute
  9. {
  10. /**
  11. * Return forms in which the attribute
  12. *
  13. * @return array
  14. */
  15. public function getUsedInForms()
  16. {
  17. $forms = $this->getData('used_in_forms');
  18. if ($forms === null) {
  19. $forms = [];
  20. $this->setData('used_in_forms', $forms);
  21. }
  22. return $forms;
  23. }
  24. }