diff --git a/report/loglive/classes/privacy/provider.php b/report/loglive/classes/privacy/provider.php new file mode 100644 index 00000000000..f0dd1e97445 --- /dev/null +++ b/report/loglive/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for report_loglive. + * + * @package report_loglive + * @copyright 2018 Zig Tan + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_loglive\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for report_loglive 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/loglive/lang/en/report_loglive.php b/report/loglive/lang/en/report_loglive.php index e8c98f1b93d..bb83efd9767 100644 --- a/report/loglive/lang/en/report_loglive.php +++ b/report/loglive/lang/en/report_loglive.php @@ -36,4 +36,5 @@ $string['nologreaderenabled'] = 'No log reader enabled'; $string['pause'] = 'Pause live updates'; $string['pluginname'] = 'Live logs'; $string['resume'] = 'Resume live updates'; -$string['selectlogreader'] = 'Select log reader'; \ No newline at end of file +$string['selectlogreader'] = 'Select log reader'; +$string['privacy:metadata'] = 'The report_loglive plugin does not store any personal data.';