From 362a7ed6fe8bbd28a88c7c2ea25b87ddb9a9ae27 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Wed, 7 Mar 2018 10:28:43 +0800 Subject: [PATCH] MDL-61567 mod_url: Implement null provider mod_url --- mod/url/classes/privacy/provider.php | 44 ++++++++++++++++++++++++++++ mod/url/lang/en/url.php | 1 + 2 files changed, 45 insertions(+) create mode 100644 mod/url/classes/privacy/provider.php diff --git a/mod/url/classes/privacy/provider.php b/mod/url/classes/privacy/provider.php new file mode 100644 index 00000000000..7c7f79a4346 --- /dev/null +++ b/mod/url/classes/privacy/provider.php @@ -0,0 +1,44 @@ +. + +/** + * Privacy Subsystem implementation for mod_url. + * + * @package mod_url + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace mod_url\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The mod_url 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/url/lang/en/url.php b/mod/url/lang/en/url.php index 51abd4b4aa7..7b670a8389c 100644 --- a/mod/url/lang/en/url.php +++ b/mod/url/lang/en/url.php @@ -70,6 +70,7 @@ $string['popupwidth'] = 'Pop-up width (in pixels)'; $string['popupwidthexplain'] = 'Specifies default width of popup windows.'; $string['printintro'] = 'Display URL description'; $string['printintroexplain'] = 'Display URL description below content? Some display types may not display description even if enabled.'; +$string['privacy:metadata'] = 'The mod_url plugin does not store any personal data.'; $string['rolesinparams'] = 'Include role names in parameters'; $string['search:activity'] = 'URL'; $string['serverurl'] = 'Server URL';