diff --git a/admin/tool/profiling/classes/privacy/provider.php b/admin/tool/profiling/classes/privacy/provider.php new file mode 100644 index 00000000000..5e758e6c2f2 --- /dev/null +++ b/admin/tool/profiling/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for tool_profiling. + * + * @package tool_profiling + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace tool_profiling\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for tool_profiling 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/admin/tool/profiling/lang/en/tool_profiling.php b/admin/tool/profiling/lang/en/tool_profiling.php index 7c80c848c3a..17479ba29d3 100644 --- a/admin/tool/profiling/lang/en/tool_profiling.php +++ b/admin/tool/profiling/lang/en/tool_profiling.php @@ -53,3 +53,4 @@ $string['summaryof'] = 'Summary of {$a}'; $string['viewdetails'] = 'View profiling details'; $string['viewdiff'] = 'View profiling differences with:'; $string['viewdiffdetails'] = 'View profiling diff details'; +$string['privacy:metadata'] = 'The Profiling runs plugin does not store any personal data.';