Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <field id="test" translate="label" type="multiselect" sortOrder="11" showInDefault="1" showInStore="1" showInWebsite="1">
  2. <label>Cms Page</label>
  3. <source_model>NamespaceModuleModelTest</source_model>
  4. </field>
  5.  
  6. public function toOptionArray()
  7. {
  8. $options = [
  9. [
  10. 'label' => __('-- Please select --'),
  11. 'value' => '',
  12. ],
  13. [
  14. 'label' => __('Home Page '),
  15. 'value' => 'cms_index_index',
  16. ],
  17. [
  18. 'label' => __('404 Page'),
  19. 'value' => 'cms_page_view',
  20. ],
  21. [
  22. 'label' => __('Product'),
  23. 'value' => 'catalog_product_view',
  24. ],
  25. [
  26. 'label' => __('Category'),
  27. 'value' => 'catalog_category_view',
  28. ],
  29.  
  30. ];
  31. return $options;
  32.  
  33. <source_model>NamespaceModuleModelTest</source_model>
  34.  
  35. <source_model>MagentoCmsModelConfigSourcePage</source_model>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement