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:
parent
d0a21caea2
commit
82bbc85fd6
@ -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