findComponentHandler example

|| (\count($presetData['syncData']) === 1 && empty($presetData['syncData']['assets']))
        ) {
            return;
        }

        $element = $this->findElementBySyncKey($presetData$elementSyncKey);

        if (!$element) {
            throw new PresetAssetImportException('The processed element could not be found in preset data.');
        }

        $handler = $this->findComponentHandler($element);

        if (!$handler) {
            return;
        }

        if (!isset($presetData['syncData']['importedAssets'])) {
            $presetData['syncData']['importedAssets'] = [];
        }

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

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