diff --git a/mod/label/classes/privacy/provider.php b/mod/label/classes/privacy/provider.php new file mode 100644 index 00000000000..5d6ac61ecb1 --- /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 6f3dd9bb972..62891ff4592 100644 --- a/mod/label/lang/en/label.php +++ b/mod/label/lang/en/label.php @@ -48,6 +48,7 @@ Labels may be used * 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';