MDL-71189 core_completion: Adding completion sort order to activities

This implements sort ordering for all completion conditions, in
activities which support custom completion conditions.
This commit is contained in:
Michael Hawkins
2021-05-03 13:42:23 +08:00
parent 30426fbe5e
commit 70b16bb87c
13 changed files with 163 additions and 1 deletions
@@ -79,4 +79,14 @@ class custom_completion extends activity_custom_completion {
return in_array($display, $displaytypes);
}
/**
* Returns an array of all completion rules, in the order they should be displayed to users.
*
* @return array
*/
public function get_sort_order(): array {
// This module only supports manual completion.
return [];
}
}