synchronizeData example

$this->setAssetPaths($syncData);

        try {
            $element = $handler->import($element$syncData);
        } catch (Exception $e) {
            throw new PresetAssetImportException($e->getMessage());
        }

        $presetData['syncData'] = $syncData->all();
        $preset->setPresetData(json_encode($presetData));

        $this->synchronizeData($preset$element);
    }

    /** * {@inheritdoc} */
    public function prepareAssetExport(Preset $preset)
    {
        $presetData = json_decode($preset->getPresetData(), true);

        $presetData['syncData']['assets'] = [];
        $syncData = new ParameterBag($presetData['syncData']);

        
Home | Imprint | This part of the site doesn't use cookies.