diff --git a/portfolio/download/classes/privacy/provider.php b/portfolio/download/classes/privacy/provider.php new file mode 100644 index 00000000000..44fa942bb1e --- /dev/null +++ b/portfolio/download/classes/privacy/provider.php @@ -0,0 +1,48 @@ +. + +/** + * Privacy class for requesting user data. + * + * @package portfolio_download + * @copyright 2018 Jake Dallimore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace portfolio_download\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Provider for the portfolio_download plugin. + * + * @copyright 2018 Jake Dallimore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements + // This portfolio plugin does not store any data itself. + // It has no database tables, and it purely acts as a conduit, sending data externally. + \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() { + return 'privacy:metadata'; + } +} diff --git a/portfolio/download/lang/en/portfolio_download.php b/portfolio/download/lang/en/portfolio_download.php index d0d7af2b0b6..7936700a9c8 100644 --- a/portfolio/download/lang/en/portfolio_download.php +++ b/portfolio/download/lang/en/portfolio_download.php @@ -26,3 +26,4 @@ $string['downloadfile'] = 'Download your portfolio export file'; $string['downloading'] = 'Downloading ...'; $string['pluginname'] = 'File download'; +$string['privacy:metadata'] = 'This plugin does not store personal data, nor does it export personal data to an external location.';