Guest User

Untitled

a guest
Oct 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <field id="Moduleposition" translate="Module" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  2. <Module>Module Position</Module>
  3. <source_model>VendorModuleModelConfigSourceConfigOption</source_model>
  4. </field>
  5.  
  6. <?php
  7.  
  8. namespace VendorModuleModelConfigSource;
  9.  
  10. class ConfigOption implements MagentoFrameworkOptionArrayInterface
  11. {
  12. public function toOptionArray()
  13. {
  14. return [
  15. ['value' => '1', 'Label' => __('Top Right')],
  16. ['value' => '2', 'Label' => __('Top Left')],
  17. ['value' => '3', 'Label' => __('Middle Right')],
  18. ['value' => '4', 'Label' => __('Middle')],
  19. ['value' => '5', 'Label' => __('Middle Left')],
  20. ['value' => '6', 'Label' => __('Bottom Right')],
  21. ['value' => '7', 'Label' => __('Bottom Left')]
  22. ];
  23. }
  24. }
Add Comment
Please, Sign In to add comment