original_string: private function get_display_mode_selector_html(int $displaymode) : string {
          $baseurl = $this->baseurl;
          $select = new single_select(
              $baseurl,
              'mode',
              forum_get_layout_modes(),
              $displaymode,
              null,
              'mode'
          );
          $select->set_label(get_string('displaymode', 'forum'), ['class' => 'accesshide']);
  
          return $this->renderer->render($select);
      }
code: private function get_display_mode_selector_html(int $displaymode) : string {
          $baseurl = $this->baseurl;
          $select = new single_select(
              $baseurl,
              'mode',
              forum_get_layout_modes(),
              $displaymode,
              null,
              'mode'
          );
          $select->set_label(get_string('displaymode', 'forum'), ['class' => 'accesshide']);
  
          return $this->renderer->render($select);
      }
code_tokens: private function get_display_mode_selector_html ( int $ displaymode ) : string { $ baseurl = $ this -> baseurl ; $ select = new single_select ( $ baseurl , 'mode' , forum_get_layout_modes ( ) , $ displaymode , null , 'mode' ) ; $ select -> set_label ( get_string ( 'displaymode' , 'forum' ) , [ 'class' => 'accesshide' ] ) ; return $ this -> renderer -> render ( $ select ) ; }
docstring: Get the HTML for the display mode selector.
  
  @param int $displaymode The current display mode
  @return string
docstring_tokens: Get the HTML for the display mode selector .