original_string: public function get_context_url(\core_search\document $doc) {
          $contextmodule = \context::instance_by_id($doc->get('contextid'));
          return new \moodle_url('/mod/forum/view.php', array('id' => $contextmodule->instanceid));
      }
code: public function get_context_url(\core_search\document $doc) {
          $contextmodule = \context::instance_by_id($doc->get('contextid'));
          return new \moodle_url('/mod/forum/view.php', array('id' => $contextmodule->instanceid));
      }
code_tokens: public function get_context_url ( \ core_search \ document $ doc ) { $ contextmodule = \ context :: instance_by_id ( $ doc -> get ( 'contextid' ) ) ; return new \ moodle_url ( '/mod/forum/view.php' , array ( 'id' => $ contextmodule -> instanceid ) ) ; }
docstring: Link to the forum.
  
  @param \core_search\document $doc
  @return \moodle_url
docstring_tokens: Link to the forum .