/** @var string $id */
$id =
$profileRepository->
searchIds($criteria, Context::
createDefaultContext())->
firstId();
return $id;
} protected function cloneDefaultProfile(string
$entity): ImportExportProfileEntity
{ /** @var EntityRepository $profileRepository */
$profileRepository =
$this->
getContainer()->
get('import_export_profile.repository'
);
$systemDefaultProfileId =
$this->
getDefaultProfileId($entity);
$newId = Uuid::
randomHex();
$profileRepository->
clone($systemDefaultProfileId, Context::
createDefaultContext(),
$newId);
// get the cloned profile
return $profileRepository->
search(new Criteria([$newId]), Context::
createDefaultContext())->
first();
} /**
* @param array<array<string, mixed>> $mappings
*/
protected function updateProfileMapping(string
$profileId, array
$mappings): void
{