23 lines
540 B
PHP
Executable File
23 lines
540 B
PHP
Executable File
<?php /**/
|
|
namespace Olegnax\Athlete2\Model\Config\Settings\Header;
|
|
use Magento\Framework\Option\ArrayInterface;
|
|
|
|
class BannerColumns implements ArrayInterface
|
|
{
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
['value' => '1', 'label' => __('1')],
|
|
['value' => '2', 'label' => __('2')]
|
|
];
|
|
}
|
|
public function toArray()
|
|
{
|
|
$array = [];
|
|
foreach ($this->toOptionArray() as $item) {
|
|
$array[$item['value']] = $item['label'];
|
|
}
|
|
return $array;
|
|
}
|
|
}
|