Skip to content

Commit 65b6e94

Browse files
1.4.0 release
1 parent fe6d02e commit 65b6e94

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @author Amasty Team
7+
* @copyright Copyright (c) Amasty (https://www.amasty.com)
8+
* @package Import-Export Core for Magento 2 (System)
9+
*/
10+
11+
namespace Amasty\ImportExportCore\Model\OptionSource;
12+
13+
use Magento\Framework\Data\OptionSourceInterface;
14+
15+
class ProcessStatusCheckMode implements OptionSourceInterface
16+
{
17+
public const PID = 0;
18+
public const STATUS = 1;
19+
20+
public function toOptionArray(): array
21+
{
22+
$result = [];
23+
foreach ($this->toArray() as $value => $label) {
24+
$result[] = [
25+
'label' => $label,
26+
'value' => $value
27+
];
28+
}
29+
30+
return $result;
31+
}
32+
33+
public function toArray(): array
34+
{
35+
return [
36+
self::PID => __('System Process ID'),
37+
self::STATUS => __('Statuses')
38+
];
39+
}
40+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": ">=7.3"
66
},
77
"type": "magento2-module",
8-
"version": "1.3.0",
8+
"version": "1.4.0",
99
"license": [
1010
"proprietary"
1111
],

i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"The file ""%1"" does not exist","The file ""%1"" does not exist"
22
"Invalid XML in file %1:\n%2","Invalid XML in file %1:\n%2"
33
.,.
4+
"System Process ID","System Process ID"
5+
Statuses,Statuses
46
"The consumer isn't authorized to access %1","The consumer isn't authorized to access %1"
57
"Please specify the profile ID","Please specify the profile ID"
68
"The process has been started.","The process has been started."

0 commit comments

Comments
 (0)