Files
ltsecurityinc/app/code/Olegnax/Athlete2/Model/Config/Settings/Header/SearchStyle.php
T

25 lines
717 B
PHP
Executable File

<?php
namespace Olegnax\Athlete2\Model\Config\Settings\Header;
use Magento\Framework\Option\ArrayInterface;
class SearchStyle implements ArrayInterface
{
public function toOptionArray()
{
return [
['value' => '', 'label' => __('Default - No border')],
['value' => 'border-single', 'label' => __('Single Border')],
['value' => 'border-double', 'label' => __('Double Border')],
['value' => 'underlined', 'label' => __('Underlined')]
];
}
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
}