mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 12:10:08 +00:00
Add support for PHP 5.6 and Privacy API
This commit is contained in:
parent
d0b530aa97
commit
d3c9cb44aa
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user