Files
ltsecurityinc/app/code/Olegnax/Athlete2/Model/Config/Settings/Blog/RelatedColumns.php
T

27 lines
525 B
PHP
Executable File

<?php
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
use Magento\Framework\Option\ArrayInterface;
class RelatedColumns implements ArrayInterface
{
public function toOptionArray() {
$optionArray = [ ];
$array = $this->toArray();
foreach ( $array as $key => $value ) {
$optionArray[] = [ 'value' => $key, 'label' => $value ];
}
return $optionArray;
}
public function toArray()
{
return [
'2' => __('2'),
'3' => __('3'),
'4' => __('4'),
];
}
}