Enable.php 611 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Smartwave\Porto\Model\Config\Settings\Newsletter;
  3. class Enable implements \Magento\Framework\Option\ArrayInterface
  4. {
  5. public function toOptionArray()
  6. {
  7. return [
  8. ['value' => '0', 'label' => __('Disable')],
  9. ['value' => '1', 'label' => __('Enable on Only Homepage')],
  10. ['value' => '2', 'label' => __('Enable on All Pages')]
  11. ];
  12. }
  13. public function toArray()
  14. {
  15. return [
  16. '0' => __('Disable'),
  17. '1' => __('Enable on Only Homepage'),
  18. '2' => __('Enable on All Pages')
  19. ];
  20. }
  21. }