private function getPath($folderId)
    {
        $folder = $this->repository->find($folderId);
        $path = [];
        while ($folder) {
            $path[] = $folder;
            $folder = $folder->folder;
        }

        $firstItem = new stdClass();
        $firstItem->name = __('Files');
        $firstItem->type = 'f';
        $firstItem->id = '';

        $path[] = $firstItem;
        $path = array_reverse($path);

        return $path;
    }
private function getPath($folderId)
    {
        $folder = $this->repository->find($folderId);
        $path = [];
        while ($folder) {
            $path[] = $folder;
            $folder = $folder->folder;
        }

        $firstItem = new stdClass();
        $firstItem->name = __('Files');
        $firstItem->type = 'f';
        $firstItem->id = '';

        $path[] = $firstItem;
        $path = array_reverse($path);

        return $path;
    }
private function getPath ( $ folderId ) { $ folder = $ this -> repository -> find ( $ folderId ) ; $ path = [ ] ; while ( $ folder ) { $ path [ ] = $ folder ; $ folder = $ folder -> folder ; } $ firstItem = new stdClass ( ) ; $ firstItem -> name = __ ( 'Files' ) ; $ firstItem -> type = 'f' ; $ firstItem -> id = '' ; $ path [ ] = $ firstItem ; $ path = array_reverse ( $ path ) ; return $ path ; }
Get folders path.

@return array
Get folders path .