DataProvider.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * Copyright © 2016 Magento. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Smartwave\Megamenu\Model\Category;
  7. /**
  8. * Class DataProvider
  9. *
  10. * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
  11. */
  12. class DataProvider extends \Magento\Catalog\Model\Category\DataProvider
  13. {
  14. /**
  15. * @return array
  16. */
  17. protected function getFieldsMap()
  18. {
  19. return [
  20. 'general' =>
  21. [
  22. 'parent',
  23. 'path',
  24. 'is_active',
  25. 'include_in_menu',
  26. 'name',
  27. ],
  28. 'content' =>
  29. [
  30. 'image',
  31. 'description',
  32. 'landing_page',
  33. ],
  34. 'display_settings' =>
  35. [
  36. 'display_mode',
  37. 'is_anchor',
  38. 'available_sort_by',
  39. 'use_config.available_sort_by',
  40. 'default_sort_by',
  41. 'use_config.default_sort_by',
  42. 'filter_price_range',
  43. 'use_config.filter_price_range',
  44. ],
  45. 'search_engine_optimization' =>
  46. [
  47. 'url_key',
  48. 'url_key_create_redirect',
  49. 'use_default.url_key',
  50. 'url_key_group',
  51. 'meta_title',
  52. 'meta_keywords',
  53. 'meta_description',
  54. ],
  55. 'assign_products' =>
  56. [
  57. ],
  58. 'design' =>
  59. [
  60. 'custom_use_parent_settings',
  61. 'custom_apply_to_products',
  62. 'custom_design',
  63. 'page_layout',
  64. 'custom_layout_update',
  65. ],
  66. 'schedule_design_update' =>
  67. [
  68. 'custom_design_from',
  69. 'custom_design_to',
  70. ],
  71. 'sw-menu' =>
  72. [
  73. 'sw_menu_hide_item',
  74. 'sw_menu_type',
  75. 'sw_menu_static_width',
  76. 'sw_menu_cat_columns',
  77. 'sw_menu_float_type',
  78. 'sw_menu_cat_label',
  79. 'sw_menu_icon_img',
  80. 'sw_menu_font_icon',
  81. 'sw_menu_block_top_content',
  82. 'sw_menu_block_left_width',
  83. 'sw_menu_block_left_content',
  84. 'sw_menu_block_right_width',
  85. 'sw_menu_block_right_content',
  86. 'sw_menu_block_bottom_content',
  87. ],
  88. 'category_view_optimization' =>
  89. [
  90. ],
  91. 'category_permissions' =>
  92. [
  93. ],
  94. ];
  95. }
  96. }