Skip to content

Commit 3b1b16c

Browse files
committed
docs: we do not use get_validation_error
1 parent 513fedc commit 3b1b16c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

question.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public function summarise_response(array $response) {
299299
* @return string the message.
300300
*/
301301
public function get_validation_error(array $response) {
302+
// This method is only called by the renderer of each question type.
303+
// We do not call it in our renderer, so we can just return an empty string.
304+
// The question package is responsible for displaying validation errors using JavaScript.
302305
return '';
303306
}
304307

0 commit comments

Comments
 (0)