diff --git a/analytics/classes/manager.php b/analytics/classes/manager.php index 8bbdf4d2cd4..4216bbe4cfd 100644 --- a/analytics/classes/manager.php +++ b/analytics/classes/manager.php @@ -603,8 +603,8 @@ class manager { */ public static function add_builtin_models() { - debugging('core_analytics\manager::add_builtin_models() has been deprecated. Core models are now automatically '. - 'updated according to their declaration in the lib/db/analytics.php file.', DEBUG_DEVELOPER); + throw new \coding_exception('core_analytics\manager::add_builtin_models() has been removed. Core models ' . + 'are now automatically updated according to their declaration in the lib/db/analytics.php file.'); } /** diff --git a/analytics/upgrade.txt b/analytics/upgrade.txt index 9501afbeeae..ff24228eda0 100644 --- a/analytics/upgrade.txt +++ b/analytics/upgrade.txt @@ -4,6 +4,10 @@ information provided here is intended especially for developers. === 3.11 === * Final deprecation get_enabled_time_splitting_methods. Method has been removed. Use get_time_splitting_methods_for_evaluation instead. +* Final deprecation add_builtin_models. Method has been removed. The functionality + has been replaced with automatic update of models provided by the core moodle component. + There is no need to call this method explicitly any more. Instead, adding new models can be achieved + by updating the lib/db/analytics.php file and bumping the core version. === 3.8 ===