original_string: public function sentbackupinfo($id) {
          $html = html_writer::tag('div', get_string('sent', 'hub'),
              array('class' => 'courseuploadtextinfo'));
          $publishindexurl = new moodle_url('/course/publish/index.php',
              array('sesskey' => sesskey(), 'id' => $id,
                  'published' => true));
          $continue = $this->output->render(
              new single_button($publishindexurl, get_string('continue')));
          $html .= html_writer::tag('div', $continue, array('class' => 'sharecoursecontinue'));
          return $html;
      }
code: public function sentbackupinfo($id) {
          $html = html_writer::tag('div', get_string('sent', 'hub'),
              array('class' => 'courseuploadtextinfo'));
          $publishindexurl = new moodle_url('/course/publish/index.php',
              array('sesskey' => sesskey(), 'id' => $id,
                  'published' => true));
          $continue = $this->output->render(
              new single_button($publishindexurl, get_string('continue')));
          $html .= html_writer::tag('div', $continue, array('class' => 'sharecoursecontinue'));
          return $html;
      }
code_tokens: public function sentbackupinfo ( $ id ) { $ html = html_writer :: tag ( 'div' , get_string ( 'sent' , 'hub' ) , array ( 'class' => 'courseuploadtextinfo' ) ) ; $ publishindexurl = new moodle_url ( '/course/publish/index.php' , array ( 'sesskey' => sesskey ( ) , 'id' => $ id , 'published' => true ) ) ; $ continue = $ this -> output -> render ( new single_button ( $ publishindexurl , get_string ( 'continue' ) ) ) ; $ html .= html_writer :: tag ( 'div' , $ continue , array ( 'class' => 'sharecoursecontinue' ) ) ; return $ html ; }
docstring: Display upload successfull message and a button to the publish index page
  @param int $id the course id
  @return $html string
docstring_tokens: Display upload successfull message and a button to the publish index page