original_string: public static function get_tool_proxy_registration_request($id) {
          $params = self::validate_parameters(self::get_tool_proxy_registration_request_parameters(),
                                              array(
                                                  'id' => $id,
                                              ));
          $id = $params['id'];
  
          $context = context_system::instance();
          self::validate_context($context);
          require_capability('moodle/site:config', $context);
  
          $toolproxy = lti_get_tool_proxy($id);
          return lti_build_registration_request($toolproxy);
      }
code: public static function get_tool_proxy_registration_request($id) {
          $params = self::validate_parameters(self::get_tool_proxy_registration_request_parameters(),
                                              array(
                                                  'id' => $id,
                                              ));
          $id = $params['id'];
  
          $context = context_system::instance();
          self::validate_context($context);
          require_capability('moodle/site:config', $context);
  
          $toolproxy = lti_get_tool_proxy($id);
          return lti_build_registration_request($toolproxy);
      }
code_tokens: public static function get_tool_proxy_registration_request ( $ id ) { $ params = self :: validate_parameters ( self :: get_tool_proxy_registration_request_parameters ( ) , array ( 'id' => $ id , ) ) ; $ id = $ params [ 'id' ] ; $ context = context_system :: instance ( ) ; self :: validate_context ( $ context ) ; require_capability ( 'moodle/site:config' , $ context ) ; $ toolproxy = lti_get_tool_proxy ( $ id ) ; return lti_build_registration_request ( $ toolproxy ) ; }
docstring: Returns the registration request for a tool proxy.
  
  @param int $id the lti instance id
  @return array of registration parameters
  @since Moodle 3.1
  @throws moodle_exception
docstring_tokens: Returns the registration request for a tool proxy .