$payload[$folder->
getId()]['useParentConfiguration'
] = false;
$payload[$folder->
getId()]['configurationId'
] =
$configurationId;
} return $payload;
} private function deleteOwnConfiguration(MediaFolderEntity
$folder, Context
$context): void
{ if ($folder->
getUseParentConfiguration() === false
) { $this->mediaFolderConfigRepo->
delete([['id' =>
$folder->
getConfigurationId()]],
$context);
} } private function cloneConfiguration(string
$configId, Context
$context): string
{ $newId = Uuid::
randomHex();
$this->mediaFolderConfigRepo->
clone($configId,
$context,
$newId);
return $newId;
}