Buttonstyle.php 693 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace WeltPixel\Quickview\Model\Config\Source;
  3. use Magento\Framework\Option\ArrayInterface;
  4. /**
  5. * Class Buttonstyle
  6. *
  7. * @package WeltPixel\Quickview\Model\Config\Source
  8. */
  9. class Buttonstyle implements ArrayInterface
  10. {
  11. /**
  12. * Return list of Buttonstyle Style 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' => 'v1',
  21. 'label' => 'Version 1',
  22. ),
  23. array(
  24. 'value' => 'v2',
  25. 'label' => 'Version 2',
  26. )
  27. );
  28. }
  29. }