Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
widget_config.php
Go to the documentation of this file.
1 <?php
6 return [
7  'sales_widget_guestform' => [
8  '@' => ['type' => \Magento\Sales\Block\Widget\Guest\Form::class],
9  'is_email_compatible' => '1',
10  'name' => 'Orders and Returns',
11  'description' => 'Orders and Returns Search Form',
12  'parameters' => [
13  'title' => ['type' => 'text', 'visible' => '0', 'label' => 'Anchor Custom Title'],
14  'template' => [
15  'type' => 'select',
16  'value' => 'hierarchy/widget/link/link_block.phtml',
17  'values' => [
18  'default' => [
19  'value' => 'hierarchy/widget/link/link_block.phtml',
20  'label' => 'CMS Page Link Block Template',
21  ],
22  'link_inline' => [
23  'value' => 'hierarchy/widget/link/link_inline.phtml',
24  'label' => 'CMS Page Link Inline Template',
25  ],
26  ],
27  'visible' => '0',
28  ],
29  'link_display' => [
30  'source_model' => \Magento\Config\Model\Config\Source\Yesno::class,
31  'type' => 'select',
32  'visible' => '1',
33  'sort_order' => '10',
34  'label' => 'Display a Link to Loading a Spreadsheet',
35  'description' => "Defines whether a link to My Account",
36  ],
37  'link_text' => [
38  'type' => 'text',
39  'value' => 'Load a list of SKUs',
40  'visible' => '1',
41  'required' => '1',
42  'sort_order' => '20',
43  'label' => 'Link Text',
44  'description' => 'The text of the link to the My Account &gt; Order by SKU page',
45  'depends' => ['link_display' => ['value' => '1']],
46  ],
47  'id_path' => [
48  'type' => 'label',
49  '@' => ['type' => 'complex'],
50  'helper_block' => [
51  'type' => \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser::class,
52  'data' => ['button' => ['open' => 'Select Product...']],
53  ],
54  'visible' => '1',
55  'required' => '1',
56  'sort_order' => '10',
57  'label' => 'Product',
58  ],
59  'condition' => [
60  'type' => \Magento\CatalogWidget\Block\Product\Widget\Conditions::class,
61  'visible' => '1',
62  'required' => '1',
63  'sort_order' => '10',
64  'label' => 'Conditions',
65  ],
66 
67  ],
68  'supported_containers' => [
69  '0' => ['container_name' => 'left', 'template' => ['default' => 'default_template']],
70  '1' => ['container_name' => 'right', 'template' => ['default' => 'default_template']],
71  ],
72  ]
73 ];