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
d0a21caea2
commit
82bbc85fd6
@ -20,8 +20,14 @@ defined('MOODLE_INTERNAL') || die();
|
|||||||
|
|
||||||
use core_privacy\local\metadata\collection;
|
use core_privacy\local\metadata\collection;
|
||||||
|
|
||||||
class provider implements \core_privacy\local\metadata\provider {
|
class provider implements
|
||||||
public static function get_metadata(collection $collection): collection {
|
\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(
|
$collection->add_subsystem_link(
|
||||||
'core_files',
|
'core_files',
|
||||||
|
Loading…
Reference in New Issue
Block a user