Files

28 lines
514 B
PHP
Executable File

<?php
namespace Olegnax\Athlete2\Model\Config\Settings;
use Magento\Framework\Option\ArrayInterface;
class BgPositionY 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 [
'center' => __( 'Center' ),
'top' => __( 'Top' ),
'bottom' => __( 'Bottom' ),
];
}
}