mappedConfigArray1.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. return [
  7. '@' => ['type' => \Magento\Cms\Block\Widget\Page\Link::class, 'module' => 'Magento_Cms'],
  8. 'name' => 'CMS Page Link',
  9. 'description' => 'Link to a CMS Page',
  10. 'is_email_compatible' => '1',
  11. 'placeholder_image' => 'Magento_Cms::images/widget_page_link.png',
  12. 'parameters' => [
  13. 'page_id' => [
  14. '@' => ['type' => 'complex'],
  15. 'type' => 'label',
  16. 'helper_block' => [
  17. 'type' => \Magento\Cms\Block\Adminhtml\Page\Widget\Chooser::class,
  18. 'data' => ['button' => ['open' => 'Select Page...']],
  19. ],
  20. 'visible' => '1',
  21. 'required' => '1',
  22. 'sort_order' => '10',
  23. 'label' => 'CMS Page',
  24. ],
  25. 'anchor_text' => [
  26. 'type' => 'text',
  27. 'visible' => '1',
  28. 'label' => 'Anchor Custom Text',
  29. 'description' => 'If empty, the Page Title will be used',
  30. 'depends' => ['show_pager' => ['value' => '1']],
  31. ],
  32. 'template' => [
  33. 'type' => 'select',
  34. 'values' => [
  35. 'default' => [
  36. 'value' => 'product/widget/link/link_block.phtml',
  37. 'label' => 'Product Link Block Template',
  38. ],
  39. 'link_inline' => [
  40. 'value' => 'product/widget/link/link_inline.phtml',
  41. 'label' => 'Product Link Inline Template',
  42. ],
  43. ],
  44. 'visible' => '1',
  45. 'label' => 'Template',
  46. 'value' => 'product/widget/link/link_block.phtml',
  47. ],
  48. ],
  49. 'supported_containers' => [
  50. '0' => [
  51. 'container_name' => 'left',
  52. 'template' => ['default' => 'default', 'names_only' => 'link_inline'],
  53. ],
  54. '1' => ['container_name' => 'content', 'template' => ['grid' => 'default', 'list' => 'list']],
  55. ]
  56. ];