diff --git a/report/backups/classes/privacy/provider.php b/report/backups/classes/privacy/provider.php new file mode 100644 index 00000000000..bab05ac8da7 --- /dev/null +++ b/report/backups/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_backups. + * + * @package report_backups + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_backups\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_backups 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'; + } +} \ No newline at end of file diff --git a/report/backups/lang/en/report_backups.php b/report/backups/lang/en/report_backups.php index 3128d3f2dac..c413f33c735 100644 --- a/report/backups/lang/en/report_backups.php +++ b/report/backups/lang/en/report_backups.php @@ -30,3 +30,4 @@ $string['nologsfound'] = 'There were no logs found for this backup.'; $string['pluginname'] = 'Backups report'; $string['strftimetime'] = '%I:%M:%S %p'; $string['viewlogs'] = 'View logs'; +$string['privacy:metadata'] = 'The report_backups plugin does not store any personal data.';