original_string: public function get_config_for_external() {
          global $CFG;
  
          $configs = $this->get_config();
  
          // Get a size in bytes.
          if ($configs->maxsubmissionsizebytes == 0) {
              $configs->maxsubmissionsizebytes = get_max_upload_file_size($CFG->maxbytes, $this->assignment->get_course()->maxbytes,
                                                                          get_config('assignsubmission_file', 'maxbytes'));
          }
          return (array) $configs;
      }
code: public function get_config_for_external() {
          global $CFG;
  
          $configs = $this->get_config();
  
          // Get a size in bytes.
          if ($configs->maxsubmissionsizebytes == 0) {
              $configs->maxsubmissionsizebytes = get_max_upload_file_size($CFG->maxbytes, $this->assignment->get_course()->maxbytes,
                                                                          get_config('assignsubmission_file', 'maxbytes'));
          }
          return (array) $configs;
      }
code_tokens: public function get_config_for_external ( ) { global $ CFG ; $ configs = $ this -> get_config ( ) ; // Get a size in bytes. if ( $ configs -> maxsubmissionsizebytes == 0 ) { $ configs -> maxsubmissionsizebytes = get_max_upload_file_size ( $ CFG -> maxbytes , $ this -> assignment -> get_course ( ) -> maxbytes , get_config ( 'assignsubmission_file' , 'maxbytes' ) ) ; } return ( array ) $ configs ; }
docstring: Return the plugin configs for external functions.
  
  @return array the list of settings
  @since Moodle 3.2
docstring_tokens: Return the plugin configs for external functions .