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:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user