original_string: protected function display_category_form($contexts, $pageurl, $current) {
          echo \html_writer::start_div('choosecategory');
          $catmenu = question_category_options($contexts, true, 0, true);
          echo \html_writer::label(get_string('selectacategory', 'question'), 'id_selectacategory');
          echo \html_writer::select($catmenu, 'category', $current, array(),
                  array('class' => 'searchoptions custom-select', 'id' => 'id_selectacategory'));
          echo \html_writer::end_div() . "\n";
      }
code: protected function display_category_form($contexts, $pageurl, $current) {
          echo \html_writer::start_div('choosecategory');
          $catmenu = question_category_options($contexts, true, 0, true);
          echo \html_writer::label(get_string('selectacategory', 'question'), 'id_selectacategory');
          echo \html_writer::select($catmenu, 'category', $current, array(),
                  array('class' => 'searchoptions custom-select', 'id' => 'id_selectacategory'));
          echo \html_writer::end_div() . "\n";
      }
code_tokens: protected function display_category_form ( $ contexts , $ pageurl , $ current ) { echo \ html_writer :: start_div ( 'choosecategory' ) ; $ catmenu = question_category_options ( $ contexts , true , 0 , true ) ; echo \ html_writer :: label ( get_string ( 'selectacategory' , 'question' ) , 'id_selectacategory' ) ; echo \ html_writer :: select ( $ catmenu , 'category' , $ current , array ( ) , array ( 'class' => 'searchoptions custom-select' , 'id' => 'id_selectacategory' ) ) ; echo \ html_writer :: end_div ( ) . "\n" ; }
docstring: Display the drop down to select the category.
  
  @param array $contexts of contexts that can be accessed from here.
  @param \moodle_url $pageurl the URL of this page.
  @param string $current 'categoryID,contextID'.
docstring_tokens: Display the drop down to select the category .