Width.php 1.0 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Smartwave\Megamenu\Model\Attribute;
  3. class Width extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
  4. {
  5. public function getAllOptions()
  6. {
  7. if (!$this->_options) {
  8. $this->_options = [
  9. ['value' => '0', 'label' => __('Do not show')],
  10. ['value' => '1', 'label' => __('1/12')],
  11. ['value' => '2', 'label' => __('2/12')],
  12. ['value' => '3', 'label' => __('3/12')],
  13. ['value' => '4', 'label' => __('4/12')],
  14. ['value' => '5', 'label' => __('5/12')],
  15. ['value' => '6', 'label' => __('6/12')],
  16. ['value' => '7', 'label' => __('7/12')],
  17. ['value' => '8', 'label' => __('8/12')],
  18. ['value' => '9', 'label' => __('9/12')],
  19. ['value' => '10', 'label' => __('10/12')],
  20. ['value' => '11', 'label' => __('11/12')],
  21. ['value' => '12', 'label' => __('12/12')]
  22. ];
  23. }
  24. return $this->_options;
  25. }
  26. }