escaper = $escaper;
}
public function toOptionArray()
{
return [
[
'value' => Schedule::STATUS_SUCCESS, 'label' => ''
. $this->escaper->escapeHtml(__("Success"))
. ''
],
[
'value' => Schedule::STATUS_PENDING, 'label' => ''
. $this->escaper->escapeHtml(__("Pending"))
. ''
],
[
'value' => Schedule::STATUS_RUNNING, 'label' => ''
. $this->escaper->escapeHtml(__("Running"))
. ''
],
[
'value' => Schedule::STATUS_ERROR, 'label' => ''
. $this->escaper->escapeHtml(__("Error"))
. ''
],
[
'value' => Schedule::STATUS_MISSED, 'label' => ''
. $this->escaper->escapeHtml(__("Missed"))
. ''
]
];
}
}