diff --git a/report/completion/classes/privacy/provider.php b/report/completion/classes/privacy/provider.php new file mode 100644 index 00000000000..b1b1c68ddbf --- /dev/null +++ b/report/completion/classes/privacy/provider.php @@ -0,0 +1,45 @@ +. + +/** + * Privacy provider implementation for report_completion. + * + * @package report_completion + * @copyright 2018 Mihail Geshoski + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace report_completion\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy provider implementation for report_completion. + * + * @copyright 2018 Mihail Geshoski + * @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/report/completion/lang/en/report_completion.php b/report/completion/lang/en/report_completion.php index 82b0a1026cb..7266eeba3c1 100644 --- a/report/completion/lang/en/report_completion.php +++ b/report/completion/lang/en/report_completion.php @@ -34,5 +34,6 @@ $string['page-report-completion-x'] = 'Any completion report'; $string['page-report-completion-index'] = 'Course completion report'; $string['page-report-completion-user'] = 'User course completion report'; $string['pluginname'] = 'Course completion'; +$string['privacy:metadata'] = 'The Course completion report only shows data stored in other locations.'; $string['eventreportviewed'] = 'Completion report viewed'; $string['eventuserreportviewed'] = 'Completion user report viewed';