original_string: public function display_options() {
          global $OUTPUT;
  
          $tags = \core_tag_tag::get_tags_by_area_in_contexts('core_question', 'question', $this->contexts);
          $tagoptions = array_map(function($tag) {
              return [
                  'id' => $tag->id,
                  'name' => $tag->name,
                  'selected' => in_array($tag->id, $this->selectedtagids)
              ];
          }, array_values($tags));
          $context = [
              'tagoptions' => $tagoptions
          ];
  
          echo $OUTPUT->render_from_template('core_question/tag_condition', $context);
      }
code: public function display_options() {
          global $OUTPUT;
  
          $tags = \core_tag_tag::get_tags_by_area_in_contexts('core_question', 'question', $this->contexts);
          $tagoptions = array_map(function($tag) {
              return [
                  'id' => $tag->id,
                  'name' => $tag->name,
                  'selected' => in_array($tag->id, $this->selectedtagids)
              ];
          }, array_values($tags));
          $context = [
              'tagoptions' => $tagoptions
          ];
  
          echo $OUTPUT->render_from_template('core_question/tag_condition', $context);
      }
code_tokens: public function display_options ( ) { global $ OUTPUT ; $ tags = \ core_tag_tag :: get_tags_by_area_in_contexts ( 'core_question' , 'question' , $ this -> contexts ) ; $ tagoptions = array_map ( function ( $ tag ) { return [ 'id' => $ tag -> id , 'name' => $ tag -> name , 'selected' => in_array ( $ tag -> id , $ this -> selectedtagids ) ] ; } , array_values ( $ tags ) ) ; $ context = [ 'tagoptions' => $ tagoptions ] ; echo $ OUTPUT -> render_from_template ( 'core_question/tag_condition' , $ context ) ; }
docstring: Print HTML to display the list of tags to filter by.
docstring_tokens: Print HTML to display the list of tags to filter by .