toOptionArray() as $item) { $array[$item['value']] = $item['label']; } return $array; } /** * @return array */ public function toOptionArray() { return [ [ 'value' => static::LAYOUT1, 'label' => __('In one Line'), ], [ 'value' => static::LAYOUT2, 'label' => __('Button Below Input'), ], ]; } }