Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <field id="Moduleposition" translate="Module" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
- <Module>Module Position</Module>
- <source_model>VendorModuleModelConfigSourceConfigOption</source_model>
- </field>
- <?php
- namespace VendorModuleModelConfigSource;
- class ConfigOption implements MagentoFrameworkOptionArrayInterface
- {
- public function toOptionArray()
- {
- return [
- ['value' => '1', 'Label' => __('Top Right')],
- ['value' => '2', 'Label' => __('Top Left')],
- ['value' => '3', 'Label' => __('Middle Right')],
- ['value' => '4', 'Label' => __('Middle')],
- ['value' => '5', 'Label' => __('Middle Left')],
- ['value' => '6', 'Label' => __('Bottom Right')],
- ['value' => '7', 'Label' => __('Bottom Left')]
- ];
- }
- }
Add Comment
Please, Sign In to add comment