diff --git a/mod/folder/classes/privacy/provider.php b/mod/folder/classes/privacy/provider.php new file mode 100644 index 0000000000000..7ed91f3349918 --- /dev/null +++ b/mod/folder/classes/privacy/provider.php @@ -0,0 +1,44 @@ +. + +/** + * Privacy Subsystem implementation for mod_folder. + * + * @package mod_folder + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace mod_folder\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The mod_folder module does not store any data. + * + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/mod/folder/lang/en/folder.php b/mod/folder/lang/en/folder.php index 773a3c7f67ac1..fd8139cb47319 100644 --- a/mod/folder/lang/en/folder.php +++ b/mod/folder/lang/en/folder.php @@ -49,6 +49,7 @@ $string['newfoldercontent'] = 'New folder content'; $string['page-mod-folder-x'] = 'Any folder module page'; $string['page-mod-folder-view'] = 'Folder module main page'; +$string['privacy:metadata'] = 'The mod_folder plugin does not store any personal data.'; $string['pluginadministration'] = 'Folder administration'; $string['pluginname'] = 'Folder'; $string['display'] = 'Display folder contents';