1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 04:10:07 +00:00

Add support for PHP 5.6 and Privacy API

This commit is contained in:
Jane Adelmann 2019-01-30 16:56:56 +02:00
parent d0a21caea2
commit 82bbc85fd6
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72

View File

@ -20,8 +20,14 @@ defined('MOODLE_INTERNAL') || die();
use core_privacy\local\metadata\collection;
class provider implements \core_privacy\local\metadata\provider {
public static function get_metadata(collection $collection): collection {
class provider implements
\core_privacy\local\metadata\provider,
\core_privacy\local\request\plugin\provider {
// This trait must be included.
use \core_privacy\local\legacy_polyfill;
public static function _get_metadata(collection $collection) {
$collection->add_subsystem_link(
'core_files',