*/
class provider implements
\core_privacy\local\metadata\provider,
- \core_privacy\local\request\subsystem\provider {
+ \core_privacy\local\request\plugin\provider {
/**
* Returns meta data about this system.
*
* @param context $context The specific context to delete data for.
*/
public static function delete_data_for_all_users_in_context(\context $context) {
- if (empty($context)) {
- return;
- }
// Sanity check that context is at the User context level.
if ($context->contextlevel == CONTEXT_USER) {
static::delete_user_data($context->instanceid);
}
}
/**
- * This does the deletion of user data for the auth_oauth2.
+ * This does the deletion of user data for the mnetservice_enrolments.
*
* @param int $userid The user ID
*/
// Because we only use user contexts the instance ID is the user ID.
$DB->delete_records('mnetservice_enrol_enrolments', ['userid' => $userid]);
}
-}
\ No newline at end of file
+}