TrueFalse.php 682 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace WeltPixel\Quickview\Model\Config\Source;
  3. use Magento\Framework\Option\ArrayInterface;
  4. /**
  5. * Class TrueFalse
  6. *
  7. * @package WeltPixel\Quickview\Model\Config\Source
  8. */
  9. class TrueFalse implements ArrayInterface
  10. {
  11. /**
  12. * Return list of TrueFalse Options
  13. *
  14. * @return array Format: array(array('value' => '<value>', 'label' => '<label>'), ...)
  15. */
  16. public function toOptionArray()
  17. {
  18. return array(
  19. array(
  20. 'value' => 'true',
  21. 'label' => __('True')
  22. ),
  23. array(
  24. 'value' => 'false',
  25. 'label' => __('False')
  26. )
  27. );
  28. }
  29. }