/** * Initialize the head contributions from the question engine * * @return string */ public function get_html_head_contributions() { $result = ''; // get the slots ids from the quba layout $slots = explode(',', $this->attempt->qubalayout); // next load the slot headhtml and initialize question engine js foreach ($slots as $slot) { $result .= $this->quba->render_question_head_html($slot); } $result .= \question_engine::initialise_js(); return $result; }