27 lines
518 B
PHP
Executable File
27 lines
518 B
PHP
Executable File
<?php
|
|
namespace Olegnax\Athlete2\Model\Config\Settings\Blog;
|
|
|
|
use Magento\Framework\Option\ArrayInterface;
|
|
|
|
class Columns 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 [
|
|
'1' => __('1'),
|
|
'2' => __('2'),
|
|
'3' => __('3'),
|
|
];
|
|
}
|
|
}
|