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)';