protected function selectmultiple_button(structure $structure) {
        $buttonoptions = array(
            'type'  => 'button',
            'name'  => 'selectmultiple',
            'id'    => 'selectmultiplecommand',
            'value' => get_string('selectmultipleitems', 'quiz'),
            'class' => 'btn btn-secondary mb-1'
        );
        if (!$structure->can_be_edited()) {
            $buttonoptions['disabled'] = 'disabled';
        }

        return html_writer::tag('button', get_string('selectmultipleitems', 'quiz'), $buttonoptions);
    }
protected function selectmultiple_button(structure $structure) {
        $buttonoptions = array(
            'type'  => 'button',
            'name'  => 'selectmultiple',
            'id'    => 'selectmultiplecommand',
            'value' => get_string('selectmultipleitems', 'quiz'),
            'class' => 'btn btn-secondary mb-1'
        );
        if (!$structure->can_be_edited()) {
            $buttonoptions['disabled'] = 'disabled';
        }

        return html_writer::tag('button', get_string('selectmultipleitems', 'quiz'), $buttonoptions);
    }
protected function selectmultiple_button ( structure $ structure ) { $ buttonoptions = array ( 'type' => 'button' , 'name' => 'selectmultiple' , 'id' => 'selectmultiplecommand' , 'value' => get_string ( 'selectmultipleitems' , 'quiz' ) , 'class' => 'btn btn-secondary mb-1' ) ; if ( ! $ structure -> can_be_edited ( ) ) { $ buttonoptions [ 'disabled' ] = 'disabled' ; } return html_writer :: tag ( 'button' , get_string ( 'selectmultipleitems' , 'quiz' ) , $ buttonoptions ) ; }
Generate the bulk action button.

@param structure $structure the structure of the quiz being edited.
@return string HTML to output.
Generate the bulk action button .