diff --git a/repository/user/classes/privacy/provider.php b/repository/user/classes/privacy/provider.php new file mode 100644 index 00000000000..663d36f148b --- /dev/null +++ b/repository/user/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_user. + * + * @package repository_user + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_user\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_user implementing null_provider. + * + * @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/repository/user/lang/en/repository_user.php b/repository/user/lang/en/repository_user.php index 8998fa5928c..9a6d0cfdba0 100644 --- a/repository/user/lang/en/repository_user.php +++ b/repository/user/lang/en/repository_user.php @@ -29,3 +29,4 @@ $string['pluginname_help'] = 'Files in user private area'; $string['pluginname'] = 'Private files'; $string['emptyfilelist'] = 'There are no files to show'; $string['user:view'] = 'View user private files'; +$string['privacy:metadata'] = 'The Private files repository plugin does not store or transmit any personal data.';