We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77fb6e5 + 11b3d90 commit fd48f8aCopy full SHA for fd48f8a
app/code/Magento/Swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php
@@ -84,15 +84,15 @@ public function getJsonConfig()
84
* Parse swatch labels for template
85
*
86
* @codeCoverageIgnore
87
- * @param null $swatchStoreValue
88
- * @return string
+ * @param null|array $swatchStoreValue
+ * @return null|array
89
*/
90
protected function reformatSwatchLabels($swatchStoreValue = null)
91
{
92
if ($swatchStoreValue === null) {
93
return;
94
}
95
- $newSwatch = '';
+ $newSwatch = [];
96
foreach ($swatchStoreValue as $key => $value) {
97
if ($value[0] == '#') {
98
$newSwatch[$key] = 'background: '.$value;
0 commit comments