original_string: public function get_context_url(\core_search\document $doc) {
          $cminfo = $this->get_cm($this->get_module_name(), strval($doc->get('itemid')), $doc->get('courseid'));
          return new \moodle_url('/mod/' . $this->get_module_name() . '/view.php', array('id' => $cminfo->id));
      }
code: public function get_context_url(\core_search\document $doc) {
          $cminfo = $this->get_cm($this->get_module_name(), strval($doc->get('itemid')), $doc->get('courseid'));
          return new \moodle_url('/mod/' . $this->get_module_name() . '/view.php', array('id' => $cminfo->id));
      }
code_tokens: public function get_context_url ( \ core_search \ document $ doc ) { $ cminfo = $ this -> get_cm ( $ this -> get_module_name ( ) , strval ( $ doc -> get ( 'itemid' ) ) , $ doc -> get ( 'courseid' ) ) ; return new \ moodle_url ( '/mod/' . $ this -> get_module_name ( ) . '/view.php' , array ( 'id' => $ cminfo -> id ) ) ; }
docstring: Link to the module instance.
  
  @param \core_search\document $doc
  @return \moodle_url
docstring_tokens: Link to the module instance .