original_string: public function col_launch($tool) {
          global $OUTPUT;
  
          $url = helper::get_cartridge_url($tool);
  
          $cartridgeurllabel = get_string('cartridgeurl', 'enrol_lti');
          $cartridgeurl = $url;
          $secretlabel = get_string('secret', 'enrol_lti');
          $secret = $tool->secret;
          $launchurl = helper::get_launch_url($tool->id);
          $launchurllabel = get_string('launchurl', 'enrol_lti');
  
          $data = [
                  "rows" => [
                      [ "label" => $cartridgeurllabel, "text" => $cartridgeurl, "id" => "cartridgeurl", "hidelabel" => false ],
                      [ "label" => $secretlabel, "text" => $secret, "id" => "secret", "hidelabel" => false ],
                      [ "label" => $launchurllabel, "text" => $launchurl, "id" => "launchurl", "hidelabel" => false ],
                  ]
              ];
  
          $return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);
  
          return $return;
      }
code: public function col_launch($tool) {
          global $OUTPUT;
  
          $url = helper::get_cartridge_url($tool);
  
          $cartridgeurllabel = get_string('cartridgeurl', 'enrol_lti');
          $cartridgeurl = $url;
          $secretlabel = get_string('secret', 'enrol_lti');
          $secret = $tool->secret;
          $launchurl = helper::get_launch_url($tool->id);
          $launchurllabel = get_string('launchurl', 'enrol_lti');
  
          $data = [
                  "rows" => [
                      [ "label" => $cartridgeurllabel, "text" => $cartridgeurl, "id" => "cartridgeurl", "hidelabel" => false ],
                      [ "label" => $secretlabel, "text" => $secret, "id" => "secret", "hidelabel" => false ],
                      [ "label" => $launchurllabel, "text" => $launchurl, "id" => "launchurl", "hidelabel" => false ],
                  ]
              ];
  
          $return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);
  
          return $return;
      }
code_tokens: public function col_launch ( $ tool ) { global $ OUTPUT ; $ url = helper :: get_cartridge_url ( $ tool ) ; $ cartridgeurllabel = get_string ( 'cartridgeurl' , 'enrol_lti' ) ; $ cartridgeurl = $ url ; $ secretlabel = get_string ( 'secret' , 'enrol_lti' ) ; $ secret = $ tool -> secret ; $ launchurl = helper :: get_launch_url ( $ tool -> id ) ; $ launchurllabel = get_string ( 'launchurl' , 'enrol_lti' ) ; $ data = [ "rows" => [ [ "label" => $ cartridgeurllabel , "text" => $ cartridgeurl , "id" => "cartridgeurl" , "hidelabel" => false ] , [ "label" => $ secretlabel , "text" => $ secret , "id" => "secret" , "hidelabel" => false ] , [ "label" => $ launchurllabel , "text" => $ launchurl , "id" => "launchurl" , "hidelabel" => false ] , ] ] ; $ return = $ OUTPUT -> render_from_template ( "enrol_lti/copy_grid" , $ data ) ; return $ return ; }
docstring: Generate the launch column.
  
  @param \stdClass $tool instance data.
  @return string
docstring_tokens: Generate the launch column .