Frequency.php 755 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sitemap\Model\Config\Source;
  7. class Frequency implements \Magento\Framework\Option\ArrayInterface
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function toOptionArray()
  13. {
  14. return [
  15. ['value' => 'always', 'label' => __('Always')],
  16. ['value' => 'hourly', 'label' => __('Hourly')],
  17. ['value' => 'daily', 'label' => __('Daily')],
  18. ['value' => 'weekly', 'label' => __('Weekly')],
  19. ['value' => 'monthly', 'label' => __('Monthly')],
  20. ['value' => 'yearly', 'label' => __('Yearly')],
  21. ['value' => 'never', 'label' => __('Never')]
  22. ];
  23. }
  24. }