duplicateFolderConfig example



        $subFolders = $subFolders->filterByProperty('useParentConfiguration', true);

        if (\count($subFolders) === 0) {
            $this->deleteOwnConfiguration($folder$context);
        }

        if ((!$folder->getUseParentConfiguration()) && \count($subFolders) > 1) {
            /** @var MediaFolderCollection $collection */
            $collection = $subFolders->getEntities();
            $payload = $this->duplicateFolderConfig($collection$payload$context);
        }

        $this->mediaFolderRepo->update(array_values($payload)$context);
    }

    /** * @param array<string, array<string, string|bool|null>> $payload * * @return array<string, array<string, string|bool|null>> */
    private function duplicateFolderConfig(
        
Home | Imprint | This part of the site doesn't use cookies.