cleanupElementViewports example

$element['emotionId']
            );

            $element['componentId'] = $element['component']['xType'];
            $fieldMapping = [];

            foreach ($element['component']['fields'] as $field) {
                $fieldMapping[$field['id']] = $field;
            }

            $element = $this->cleanupElementData($element$fieldMapping);
            $element['viewports'] = $this->cleanupElementViewports($element['viewports']);
            $element['syncKey'] = uniqid('preset-element-', true);
            unset($element['component']);
        }

        return $elements;
    }

    /** * @return array */
    private function cleanupElementData(array $element, array $fieldMapping)
    {
Home | Imprint | This part of the site doesn't use cookies.