mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
32 lines
875 B
PHP
32 lines
875 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
/**
|
|
* Newsletter Queue statuses option array
|
|
*
|
|
* @author Magento Core Team <core@magentocommerce.com>
|
|
*/
|
|
namespace Magento\Newsletter\Model\Queue\Options;
|
|
|
|
class Status implements \Magento\Framework\Option\ArrayInterface
|
|
{
|
|
/**
|
|
* Return statuses option array
|
|
*
|
|
* @return array
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
\Magento\Newsletter\Model\Queue::STATUS_SENT => __('Sent'),
|
|
\Magento\Newsletter\Model\Queue::STATUS_CANCEL => __('Cancelled'),
|
|
\Magento\Newsletter\Model\Queue::STATUS_NEVER => __('Not Sent'),
|
|
\Magento\Newsletter\Model\Queue::STATUS_SENDING => __('Sending'),
|
|
\Magento\Newsletter\Model\Queue::STATUS_PAUSE => __('Paused')
|
|
];
|
|
}
|
|
}
|