From 9da92dc1a9ca63947f87872c334ee775d1bfd559 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Wed, 7 Mar 2018 10:27:20 +0800 Subject: [PATCH] MDL-61567 mod_label: Implement null provider mod_label --- mod/label/classes/privacy/provider.php | 44 ++++++++++++++++++++++++++ mod/label/lang/en/label.php | 1 + 2 files changed, 45 insertions(+) create mode 100644 mod/label/classes/privacy/provider.php diff --git a/mod/label/classes/privacy/provider.php b/mod/label/classes/privacy/provider.php new file mode 100644 index 0000000000000..5d6ac61ecb12e --- /dev/null +++ b/mod/label/classes/privacy/provider.php @@ -0,0 +1,44 @@ +. + +/** + * Privacy Subsystem implementation for mod_label. + * + * @package mod_label + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace mod_label\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The mod_label 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/label/lang/en/label.php b/mod/label/lang/en/label.php index 6f3dd9bb97214..62891ff459200 100644 --- a/mod/label/lang/en/label.php +++ b/mod/label/lang/en/label.php @@ -48,6 +48,7 @@ * To add a short description to a course section'; $string['modulename_link'] = 'mod/label/view'; $string['modulenameplural'] = 'Labels'; +$string['privacy:metadata'] = 'The mod_label plugin does not store any personal data.'; $string['pluginadministration'] = 'Label administration'; $string['pluginname'] = 'Label'; $string['search:activity'] = 'Label';