1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* MIT License |
5
|
|
|
* For full license information, please view the LICENSE file that was distributed with this source code. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace SprykerEco\Yves\FactFinderWebComponents; |
9
|
|
|
|
10
|
|
|
use Spryker\Yves\Kernel\AbstractBundleConfig; |
11
|
|
|
use SprykerEco\Shared\FactFinderWebComponents\FactFinderWebComponentsConstants; |
12
|
|
|
|
13
|
|
|
class FactFinderWebComponentsConfig extends AbstractBundleConfig |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* @return array |
17
|
|
|
*/ |
18
|
|
|
public function getCommunicationComponentConfig(): array |
19
|
|
|
{ |
20
|
|
|
return $this->get(FactFinderWebComponentsConstants::COMMUNICATION_COMPONENT_CONFIG); |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @return array |
25
|
|
|
*/ |
26
|
|
|
public function getSearchBoxComponentConfig(): array |
27
|
|
|
{ |
28
|
|
|
return $this->get(FactFinderWebComponentsConstants::SEARCH_BOX_COMPONENT_CONFIG); |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @return array |
33
|
|
|
*/ |
34
|
|
|
public function getBreadcrumbComponentConfig(): array |
35
|
|
|
{ |
36
|
|
|
return $this->get(FactFinderWebComponentsConstants::BREADCRUMB_COMPONENT_CONFIG); |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @return array |
41
|
|
|
*/ |
42
|
|
|
public function getSearchButtonComponentConfig(): array |
43
|
|
|
{ |
44
|
|
|
return $this->get(FactFinderWebComponentsConstants::SEARCH_BUTTON_COMPONENT_CONFIG); |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @return array |
49
|
|
|
*/ |
50
|
|
|
public function getRecordListComponentConfig(): array |
51
|
|
|
{ |
52
|
|
|
return $this->get(FactFinderWebComponentsConstants::RECORD_LIST_COMPONENT_CONFIG); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @return array |
57
|
|
|
*/ |
58
|
|
|
public function getCheckoutTrackingComponentConfig(): array |
59
|
|
|
{ |
60
|
|
|
return $this->get(FactFinderWebComponentsConstants::CHECKOUT_TRACKING_CONFIG); |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @return array |
65
|
|
|
*/ |
66
|
|
|
public function getRecordComponentConfig(): array |
67
|
|
|
{ |
68
|
|
|
return $this->get(FactFinderWebComponentsConstants::RECORD_COMPONENT_CONFIG); |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @return array |
73
|
|
|
*/ |
74
|
|
|
public function getSuggestComponentConfig(): array |
75
|
|
|
{ |
76
|
|
|
return $this->get(FactFinderWebComponentsConstants::SUGGEST_CONFIG); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return array |
81
|
|
|
*/ |
82
|
|
|
public function getAsnGroupWidgetComponentConfig(): array |
83
|
|
|
{ |
84
|
|
|
return $this->get(FactFinderWebComponentsConstants::ASN_GROUP_COMPONENT_CONFIG); |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return array |
89
|
|
|
*/ |
90
|
|
|
public function getAsnGroupElementComponentConfig(): array |
91
|
|
|
{ |
92
|
|
|
return $this->get(FactFinderWebComponentsConstants::ASN_GROUP_ELEMENT_CONFIG); |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return array |
97
|
|
|
*/ |
98
|
|
|
public function getAsnRemoveAllFilterComponentConfig(): array |
99
|
|
|
{ |
100
|
|
|
return $this->get(FactFinderWebComponentsConstants::ASN_REMOVE_ALL_FILTER_CONFIG); |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return array |
105
|
|
|
*/ |
106
|
|
|
public function getAsnSliderComponentConfig(): array |
107
|
|
|
{ |
108
|
|
|
return $this->get(FactFinderWebComponentsConstants::ASN_SLIDER_CONFIG); |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return array |
113
|
|
|
*/ |
114
|
|
|
public function getPagingWidgetComponentConfig(): array |
115
|
|
|
{ |
116
|
|
|
return $this->get(FactFinderWebComponentsConstants::PAGING_COMPONENT_CONFIG); |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return array |
121
|
|
|
*/ |
122
|
|
|
public function getProductsPerPageWidgetComponentConfig(): array |
123
|
|
|
{ |
124
|
|
|
return $this->get(FactFinderWebComponentsConstants::PRODUCTS_PER_PAGE_COMPONENT_CONFIG); |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @return array |
129
|
|
|
*/ |
130
|
|
|
public function getSortBoxWidgetComponentConfig(): array |
131
|
|
|
{ |
132
|
|
|
return $this->get(FactFinderWebComponentsConstants::SORT_BOX_COMPONENT_CONFIG); |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return array |
137
|
|
|
*/ |
138
|
|
|
public function getSimilarProductsComponentConfig(): array |
139
|
|
|
{ |
140
|
|
|
return array_merge( |
141
|
|
|
$this->get(FactFinderWebComponentsConstants::SIMILAR_PRODUCT_ID_CONFIG), |
142
|
|
|
$this->get(FactFinderWebComponentsConstants::SIMILAR_PRODUCTS_COMPONENT_CONFIG) |
143
|
|
|
); |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @return array |
148
|
|
|
*/ |
149
|
|
|
public function getSimilarProductIdComponentConfig(): array |
150
|
|
|
{ |
151
|
|
|
return $this->get(FactFinderWebComponentsConstants::SIMILAR_PRODUCT_ID_CONFIG); |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @return array |
156
|
|
|
*/ |
157
|
|
|
public function getRecommendationComponentConfig(): array |
158
|
|
|
{ |
159
|
|
|
return array_merge( |
160
|
|
|
$this->get(FactFinderWebComponentsConstants::RECOMMENDATION_CONFIG), |
161
|
|
|
$this->get(FactFinderWebComponentsConstants::RECOMMENDATION_RECORD_ID_CONFIG) |
162
|
|
|
); |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return array |
167
|
|
|
*/ |
168
|
|
|
public function getRecommendationRecordIdComponentConfig(): array |
169
|
|
|
{ |
170
|
|
|
return $this->get(FactFinderWebComponentsConstants::RECOMMENDATION_RECORD_ID_CONFIG); |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @return array |
175
|
|
|
*/ |
176
|
|
|
public function getHeaderNavigationWidgetComponentConfig(): array |
177
|
|
|
{ |
178
|
|
|
return $this->get(FactFinderWebComponentsConstants::HEADER_NAVIGATION_COMPONENT_CONFIG); |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* @return array |
183
|
|
|
*/ |
184
|
|
|
public function getTagCloudWidgetComponentConfig(): array |
185
|
|
|
{ |
186
|
|
|
return $this->get(FactFinderWebComponentsConstants::TAG_CLOUD_COMPONENT_CONFIG); |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* @return array |
191
|
|
|
*/ |
192
|
|
|
public function getPushedProductsWidgetComponentConfig(): array |
193
|
|
|
{ |
194
|
|
|
return $this->get(FactFinderWebComponentsConstants::PUSHED_PRODUCTS_COMPONENT_CONFIG); |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @return array |
199
|
|
|
*/ |
200
|
|
|
public function getCampaignWidgetComponentConfig(): array |
201
|
|
|
{ |
202
|
|
|
return $this->get(FactFinderWebComponentsConstants::CAMPAIGN_COMPONENT_CONFIG); |
203
|
|
|
} |
204
|
|
|
} |
205
|
|
|
|