init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\VatInvoice\Model\Config\Source;
|
||||
|
||||
use Magento\Config\Model\Config\Source\Locale as MagentoLocale;
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class Locale implements ArrayInterface
|
||||
{
|
||||
public function __construct(private readonly MagentoLocale $localeSource)
|
||||
{
|
||||
}
|
||||
|
||||
public function toOptionArray(): array
|
||||
{
|
||||
return array_merge(
|
||||
[['value' => '', 'label' => __('Follow Store View')]],
|
||||
$this->localeSource->toOptionArray()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user