From ffc148ae39cf07d28678005e22ca32b64e8d267e Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 11 May 2018 16:42:34 +0800 Subject: [PATCH] MDL-61858 tool_phpunit: added missing privacy null provider --- .../tool/phpunit/classes/privacy/provider.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 admin/tool/phpunit/classes/privacy/provider.php diff --git a/admin/tool/phpunit/classes/privacy/provider.php b/admin/tool/phpunit/classes/privacy/provider.php new file mode 100644 index 00000000000..ab9c4a8f297 --- /dev/null +++ b/admin/tool/phpunit/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for tool_phpunit. + * + * @package tool_phpunit + * @copyright 2018 Mark Nelson + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace tool_phpunit\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for tool_phpunit implementing null_provider. + * + * @copyright 2018 Mark Nelson + * @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'; + } +}