ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Olegnax\Athlete2\Model\Config\Settings;
|
||||
|
||||
use Magento\Framework\Option\ArrayInterface;
|
||||
|
||||
class TextTransform 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 [
|
||||
'' => __( 'Choose Text Transform...' ),
|
||||
'uppercase' => __( 'Uppercase' ),
|
||||
'capitalize' => __( 'Capitalize' ),
|
||||
'initial' => __( 'Initial' ),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user