diff --git a/repository/local/classes/privacy/provider.php b/repository/local/classes/privacy/provider.php new file mode 100644 index 0000000000000..4052c95d50051 --- /dev/null +++ b/repository/local/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_local. + * + * @package repository_local + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_local\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_local 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/local/lang/en/repository_local.php b/repository/local/lang/en/repository_local.php index 7368a66abfae2..d58f4f7bcee60 100644 --- a/repository/local/lang/en/repository_local.php +++ b/repository/local/lang/en/repository_local.php @@ -31,3 +31,4 @@ $string['remember'] = 'Remember me'; $string['pluginname_help'] = 'Files previously uploaded to the Moodle server'; $string['pluginname'] = 'Server files'; +$string['privacy:metadata'] = 'The Server files repository plugin does not store or transmit any personal data.';