/** * Generate the starting container html for the start of a list of sections * @param structure $structure the structure of the quiz being edited. * @return string HTML to output. */ protected function start_section_list(structure $structure) { $class = 'slots'; if ($structure->get_section_count() == 1) { $class .= ' only-one-section'; } return html_writer::start_tag('ul', array('class' => $class)); }