Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getJsonConfig()
- * Parse swatch labels for template
- *
- * @codeCoverageIgnore
- * @param null $swatchStoreValue //Remove
- * @return string //Remove
- * @param null|array $swatchStoreValue //Add
- * @return null|array //Add
- */
- protected function reformatSwatchLabels($swatchStoreValue = null)
- {
- if ($swatchStoreValue === null) {
- return;
- }
- $newSwatch = ''; // Remove
- $newSwatch = []; //Add
- foreach ($swatchStoreValue as $key => $value) {
- if ($value[0] == '#') {
- $newSwatch[$key] = 'background: '.$value;
Add Comment
Please, Sign In to add comment