original_string: public function output_html($data, $query='') {
          global $OUTPUT, $PAGE;
  
          $default = $this->get_defaultsetting();
          $context = (object) [
              'id' => $this->get_id(),
              'name' => $this->get_full_name(),
              'value' => $data,
              'descriptions' => $this->util->describe_file_types($data),
          ];
          $element = $OUTPUT->render_from_template('core_admin/setting_filetypes', $context);
  
          $PAGE->requires->js_call_amd('core_form/filetypes', 'init', [
              $this->get_id(),
              $this->visiblename->out(),
              $this->onlytypes,
              $this->allowall,
          ]);
  
          return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
      }
code: public function output_html($data, $query='') {
          global $OUTPUT, $PAGE;
  
          $default = $this->get_defaultsetting();
          $context = (object) [
              'id' => $this->get_id(),
              'name' => $this->get_full_name(),
              'value' => $data,
              'descriptions' => $this->util->describe_file_types($data),
          ];
          $element = $OUTPUT->render_from_template('core_admin/setting_filetypes', $context);
  
          $PAGE->requires->js_call_amd('core_form/filetypes', 'init', [
              $this->get_id(),
              $this->visiblename->out(),
              $this->onlytypes,
              $this->allowall,
          ]);
  
          return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
      }
code_tokens: public function output_html ( $ data , $ query = '' ) { global $ OUTPUT , $ PAGE ; $ default = $ this -> get_defaultsetting ( ) ; $ context = ( object ) [ 'id' => $ this -> get_id ( ) , 'name' => $ this -> get_full_name ( ) , 'value' => $ data , 'descriptions' => $ this -> util -> describe_file_types ( $ data ) , ] ; $ element = $ OUTPUT -> render_from_template ( 'core_admin/setting_filetypes' , $ context ) ; $ PAGE -> requires -> js_call_amd ( 'core_form/filetypes' , 'init' , [ $ this -> get_id ( ) , $ this -> visiblename -> out ( ) , $ this -> onlytypes , $ this -> allowall , ] ) ; return format_admin_setting ( $ this , $ this -> visiblename , $ element , $ this -> description , true , '' , $ default , $ query ) ; }
docstring: Return an HTML string for the setting element.
  
  @param string $data The current setting value
  @param string $query Admin search query to be highlighted
  @return string HTML to be displayed
docstring_tokens: Return an HTML string for the setting element .