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

27 lines
517 B
PHP
Executable File

<?php
namespace Olegnax\Athlete2\Model\Config\Settings;
use Magento\Framework\Option\ArrayInterface;
class ButtonStyle 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 [
'' => __( 'Athlete Default (Slide from Left)' ),
'simple' => __( 'Simple (Fade)' ),
];
}
}