23 lines
534 B
PHP
23 lines
534 B
PHP
<?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()
|
|
);
|
|
}
|
|
}
|