26 lines
532 B
PHP
Executable File
26 lines
532 B
PHP
Executable File
<?php
|
|
namespace Olegnax\Athlete2\Model\Config\Settings\Carousel;
|
|
|
|
use Magento\Framework\Option\ArrayInterface;
|
|
|
|
class Arrows 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 [
|
|
'title' => __('Title'),
|
|
'hover' => __('Left/Right on Hover'),
|
|
];
|
|
}
|
|
}
|