Status.php 428 B

123456789101112131415161718192021
  1. <?php
  2. namespace Dotdigitalgroup\Email\Model\Adminhtml\Source\Rules;
  3. class Status implements \Magento\Framework\Data\OptionSourceInterface
  4. {
  5. /**
  6. * Options array.
  7. *
  8. * @return array
  9. */
  10. public function toOptionArray()
  11. {
  12. $options = [
  13. ['value' => '0', 'label' => __('Inactive')],
  14. ['value' => '1', 'label' => __('Active')],
  15. ];
  16. return $options;
  17. }
  18. }