init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\ProductInquiry\Model\Source;
|
||||
|
||||
use Esun\ProductInquiry\Model\Inquiry;
|
||||
use Magento\Framework\Data\OptionSourceInterface;
|
||||
|
||||
class Status implements OptionSourceInterface
|
||||
{
|
||||
public function toOptionArray(): array
|
||||
{
|
||||
$options = [];
|
||||
foreach (Inquiry::getStatuses() as $value => $label) {
|
||||
$options[] = ['value' => $value, 'label' => $label];
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user