original_string: public function question_bank_contents(\mod_quiz\question\bank\custom_view $questionbank, array $pagevars) {
  
          $qbank = $questionbank->render('editq', $pagevars['qpage'], $pagevars['qperpage'],
                  $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['qbshowtext'],
                  $pagevars['qtagids']);
          return html_writer::div(html_writer::div($qbank, 'bd'), 'questionbankformforpopup');
      }
code: public function question_bank_contents(\mod_quiz\question\bank\custom_view $questionbank, array $pagevars) {
  
          $qbank = $questionbank->render('editq', $pagevars['qpage'], $pagevars['qperpage'],
                  $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['qbshowtext'],
                  $pagevars['qtagids']);
          return html_writer::div(html_writer::div($qbank, 'bd'), 'questionbankformforpopup');
      }
code_tokens: public function question_bank_contents ( \ mod_quiz \ question \ bank \ custom_view $ questionbank , array $ pagevars ) { $ qbank = $ questionbank -> render ( 'editq' , $ pagevars [ 'qpage' ] , $ pagevars [ 'qperpage' ] , $ pagevars [ 'cat' ] , $ pagevars [ 'recurse' ] , $ pagevars [ 'showhidden' ] , $ pagevars [ 'qbshowtext' ] , $ pagevars [ 'qtagids' ] ) ; return html_writer :: div ( html_writer :: div ( $ qbank , 'bd' ) , 'questionbankformforpopup' ) ; }
docstring: Return the contents of the question bank, to be displayed in the question-bank pop-up.
  
  @param \mod_quiz\question\bank\custom_view $questionbank the question bank view object.
  @param array $pagevars the variables from {@link \question_edit_setup()}.
  @return string HTML to output / send back in response to an AJAX request.
docstring_tokens: Return the contents of the question bank to be displayed in the question - bank pop - up .