diff --git a/repository/url/classes/privacy/provider.php b/repository/url/classes/privacy/provider.php new file mode 100644 index 00000000000..1c4aef2f60e --- /dev/null +++ b/repository/url/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for repository_url. + * + * @package repository_url + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace repository_url\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for repository_url 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/url/lang/en/repository_url.php b/repository/url/lang/en/repository_url.php index 2714500c416..1fef91d766a 100644 --- a/repository/url/lang/en/repository_url.php +++ b/repository/url/lang/en/repository_url.php @@ -31,3 +31,4 @@ $string['url:view'] = 'Use URL downloader in file picker'; $string['validname'] = 'You must provide a valid file name'; $string['configplugin'] = 'URL repository type configuration'; $string['validfiletype'] = 'You must provide a URL to an image file or a page containing images.'; +$string['privacy:metadata'] = 'The URL downloader repository plugin does not store or tranmit any personal data.';