We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bc471e + c267699 commit 7ba670dCopy full SHA for 7ba670d
app/code/Magento/Widget/Model/Widget/Config.php
@@ -3,6 +3,9 @@
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
+
7
+declare(strict_types=1);
8
9
namespace Magento\Widget\Model\Widget;
10
11
/**
@@ -198,8 +201,9 @@ public function decodeWidgetsFromQuery($queryParam)
198
201
199
202
public function getAvailableWidgets($config)
200
203
{
204
+ $result = [];
205
206
if (!$config->hasData('widget_types')) {
- $result = [];
207
$allWidgets = $this->_widgetFactory->create()->getWidgetsArray();
208
$skipped = $this->_getSkippedWidgets();
209
foreach ($allWidgets as $widget) {
0 commit comments