public function col_registration($tool) {
        global $OUTPUT;

        $url = helper::get_proxy_url($tool);

        $toolurllabel = get_string("registrationurl", "enrol_lti");
        $toolurl = $url;

        $data = [
                "rows" => [
                    [ "label" => $toolurllabel, "text" => $toolurl, "id" => "toolurl" , "hidelabel" => true],
                ]
            ];

        $return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);
        return $return;
    }
public function col_registration($tool) {
        global $OUTPUT;

        $url = helper::get_proxy_url($tool);

        $toolurllabel = get_string("registrationurl", "enrol_lti");
        $toolurl = $url;

        $data = [
                "rows" => [
                    [ "label" => $toolurllabel, "text" => $toolurl, "id" => "toolurl" , "hidelabel" => true],
                ]
            ];

        $return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);
        return $return;
    }
public function col_registration ( $ tool ) { global $ OUTPUT ; $ url = helper :: get_proxy_url ( $ tool ) ; $ toolurllabel = get_string ( "registrationurl" , "enrol_lti" ) ; $ toolurl = $ url ; $ data = [ "rows" => [ [ "label" => $ toolurllabel , "text" => $ toolurl , "id" => "toolurl" , "hidelabel" => true ] , ] ] ; $ return = $ OUTPUT -> render_from_template ( "enrol_lti/copy_grid" , $ data ) ; return $ return ; }
Generate the Registration column.

@param \stdClass $tool instance data.
@return string
Generate the Registration column .