From 636a50044b20495a00597f5520a12a0d75957514 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Mon, 30 Apr 2018 11:20:16 +0200 Subject: [PATCH] MDL-62266 core_availability: Implement privacy API --- availability/classes/privacy/provider.php | 46 +++++++++++++++++++++++ lang/en/availability.php | 1 + 2 files changed, 47 insertions(+) create mode 100644 availability/classes/privacy/provider.php diff --git a/availability/classes/privacy/provider.php b/availability/classes/privacy/provider.php new file mode 100644 index 00000000000..bb8a3a7b73c --- /dev/null +++ b/availability/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for core_availability. + * + * @package core_availability + * @copyright 2018 Sara Arjona + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace core_availability\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for core_availability implementing null_provider. + * + * @copyright 2018 Sara Arjona + * @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/lang/en/availability.php b/lang/en/availability.php index f4ed7e4d2e0..3c95526b448 100644 --- a/lang/en/availability.php +++ b/lang/en/availability.php @@ -61,6 +61,7 @@ $string['listheader_multi_or'] = 'any'; $string['manageplugins'] = 'Manage restrictions'; $string['missingplugin'] = 'Missing restriction plugin'; $string['or'] = 'or'; +$string['privacy:metadata'] = 'The Access restriction subsystem does not store any personal data.'; $string['restrictaccess'] = 'Restrict access'; $string['restrictbygroup'] = 'Add group/grouping access restriction'; $string['setheading'] = '{$a->number} Set of {$a->count} restriction(s)';