protected function get_thumbnail_url($entry) {
        if ($this->dropbox->supports_thumbnail($entry)) {
            $thumburl = new moodle_url('/repository/dropbox/thumbnail.php', [
                // The id field in dropbox is unique - no need to specify a revision.
                'source'    => $entry->id,
                'path'      => $entry->path_lower,

                'repo_id'   => $this->id,
                'ctx_id'    => $this->context->id,
            ]);
            return $thumburl->out(false);
        }

        return '';
    }
protected function get_thumbnail_url($entry) {
        if ($this->dropbox->supports_thumbnail($entry)) {
            $thumburl = new moodle_url('/repository/dropbox/thumbnail.php', [
                // The id field in dropbox is unique - no need to specify a revision.
                'source'    => $entry->id,
                'path'      => $entry->path_lower,

                'repo_id'   => $this->id,
                'ctx_id'    => $this->context->id,
            ]);
            return $thumburl->out(false);
        }

        return '';
    }
protected function get_thumbnail_url ( $ entry ) { if ( $ this -> dropbox -> supports_thumbnail ( $ entry ) ) { $ thumburl = new moodle_url ( '/repository/dropbox/thumbnail.php' , [ // The id field in dropbox is unique - no need to specify a revision. 'source' => $ entry -> id , 'path' => $ entry -> path_lower , 'repo_id' => $ this -> id , 'ctx_id' => $ this -> context -> id , ] ) ; return $ thumburl -> out ( false ) ; } return '' ; }
Grab the thumbnail URL for the specified entry.

@param   object      $entry      The file entry as retrieved from the API
@return  moodle_url
Grab the thumbnail URL for the specified entry .