public function getAncestorsAction(MediaFolder $folder)
    {
        $ancestors = $this->getMediaFolderRepository()->getAncestors($folder);

        return $this->createJsonResponse($ancestors);
    }