diff --git a/report/performance/classes/privacy/provider.php b/report/performance/classes/privacy/provider.php new file mode 100644 index 0000000000000..32c733acfa423 --- /dev/null +++ b/report/performance/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_performance. + * + * @package report_performance + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_performance\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_performance 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() { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/report/performance/lang/en/report_performance.php b/report/performance/lang/en/report_performance.php index d460eccc66dc3..ae0f3bbb9f70c 100644 --- a/report/performance/lang/en/report_performance.php +++ b/report/performance/lang/en/report_performance.php @@ -48,3 +48,4 @@ $string['performancereportdesc'] = 'This report lists issues which may affect performance of the site {$a}'; $string['pluginname'] = 'Performance overview'; $string['value'] = 'Value'; +$string['privacy:metadata'] = 'The report_performance plugin does not store any personal data.';