General developer forum

Help adding Privacy API to local plugin

 
Picture of Dorel Manolescu
Re: Help adding Privacy API to local plugin
Plugin developers

Hi Mike,

I used user context for same type of plugin : local with user metadata

Sub-context is more like informal (i noticed it is used in the same way in a couple of core Moodle plugins):

if (!$context instanceof \context_user) {
return;
}

$subcontext[] = get_string('pluginname', 'local_yourplugin');
It helps to create a sub-folder  with the name of your plugin where the json information is stored for that particular user.

Regards

 
Average of ratings: -