/** * Calls {@link question_rewrite_question_urls()} with appropriate parameters * for content belonging to responses to this question. * * @param string $text the text to update the URLs in. * @param int $contextid the id of the context the quba belongs to. * @param string $name the variable name the files belong to. * @param question_attempt_step $step the step the response is coming from. * @return srting the content with the URLs rewritten. */ public function rewrite_response_pluginfile_urls($text, $contextid, $name, question_attempt_step $step) { return $step->rewrite_response_pluginfile_urls($text, $contextid, $name, $this->extra_file_path_components()); }