performFileDelete example



            if (!$mediaEntity->getThumbnails()) {
                continue;
            }

            foreach ($mediaEntity->getThumbnails()->getIds() as $id) {
                $thumbnails[] = ['id' => $id];
            }
        }

        $this->performFileDelete($context$publicPaths, Visibility::PUBLIC);
        $this->performFileDelete($context$privatePaths, Visibility::PRIVATE);

        $this->thumbnailRepository->delete($thumbnails$context);
    }

    /** * @param list<string> $affected */
    private function handleFolderDeletion(array $affected, Context $context): void
    {
        $ids = $this->fetchChildrenIds($affected);

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