mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-79863 qtype_ordering: qtype/ordering add legacy_polyfill to privacy/provider.php
This commit is contained in:
parent
bed7d48b1b
commit
fe5c789b10
@ -37,13 +37,17 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
class provider implements \core_privacy\local\metadata\null_provider {
|
||||
|
||||
// This polyfill allows the provider to work on both old (pre-7)
|
||||
// and new PHP versions. Thanks to Tim Hunt for this suggestion.
|
||||
use \core_privacy\local\legacy_polyfill;
|
||||
|
||||
/**
|
||||
* 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() : string {
|
||||
public static function _get_reason() {
|
||||
return 'privacy:metadata';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user