Options.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace Dotdigitalgroup\Email\Model\Automation\Status;
  3. use Dotdigitalgroup\Email\Model\Sync\Automation;
  4. class Options implements \Magento\Framework\Data\OptionSourceInterface
  5. {
  6. /**
  7. * @return array|null
  8. */
  9. public function toOptionArray()
  10. {
  11. $options = [
  12. [
  13. 'label' => 'Pending',
  14. 'value' => 'pending'
  15. ],
  16. [
  17. 'label' => 'Suppressed',
  18. 'value' => 'Suppressed'
  19. ],[
  20. 'label' => 'Active',
  21. 'value' => 'Active'
  22. ],[
  23. 'label' => 'Draft',
  24. 'value' => 'Draft'
  25. ],[
  26. 'label' => 'Deactivated',
  27. 'value' => 'Deactivated'
  28. ],[
  29. 'label' => 'ReadOnly',
  30. 'value' => 'ReadOnly'
  31. ],[
  32. 'label' => 'NotAvailableInThisVersion',
  33. 'value' => 'NotAvailableInThisVersion'
  34. ],
  35. [
  36. 'label' => 'Failed',
  37. 'value' => 'Failed'
  38. ],
  39. [
  40. 'label' => Automation::CONTACT_STATUS_PENDING,
  41. 'value' => Automation::CONTACT_STATUS_PENDING
  42. ],
  43. [
  44. 'label' => Automation::CONTACT_STATUS_CONFIRMED,
  45. 'value' => Automation::CONTACT_STATUS_CONFIRMED
  46. ],
  47. [
  48. 'label' => Automation::CONTACT_STATUS_EXPIRED,
  49. 'value' => Automation::CONTACT_STATUS_EXPIRED
  50. ],
  51. ];
  52. return $options;
  53. }
  54. }