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