mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-62535 tool_dataprivacy: Registry shows deprecated interfaces.
This commit is contained in:
parent
4c6781f009
commit
4905daf497
@ -76,6 +76,16 @@ class metadata_registry {
|
||||
if (isset($contributedplugins[$plugintype][$shortname])) {
|
||||
$internaldata['external'] = true;
|
||||
}
|
||||
|
||||
// Check if the interface is deprecated.
|
||||
if (!$manager->is_empty_subsystem($component)) {
|
||||
$classname = $manager->get_provider_classname_for_component($component);
|
||||
$componentclass = new $classname();
|
||||
if ($componentclass instanceof \core_privacy\local\deprecated) {
|
||||
$internaldata['deprecated'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return $internaldata;
|
||||
}, $leaves['plugins']);
|
||||
$fullyrichtree[$branch]['plugin_type_raw'] = $plugintype;
|
||||
|
@ -85,6 +85,8 @@ $string['deletepurposetext'] = 'Are you sure you want to delete "{$a}" purpose?'
|
||||
$string['defaultssaved'] = 'Defaults saved';
|
||||
$string['deny'] = 'Deny';
|
||||
$string['denyrequest'] = 'Deny request';
|
||||
$string['deprecated'] = 'Deprecated';
|
||||
$string['deprecatedexplanation'] = 'This plugin is using an old version of one of the privacy interfaces and should be updated.';
|
||||
$string['download'] = 'Download';
|
||||
$string['dporolemapping'] = 'Privacy officer role mapping';
|
||||
$string['dporolemapping_desc'] = 'The privacy officer can manage data requests. The capability tool/dataprivacy:managedatarequests must be allowed for a role to be listed as a privacy officer role mapping option.';
|
||||
|
@ -61,6 +61,9 @@
|
||||
{{#external}}
|
||||
<span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>
|
||||
{{/external}}
|
||||
{{#deprecated}}
|
||||
<span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
|
||||
{{/deprecated}}
|
||||
</div>
|
||||
|
||||
{{#compliant}}
|
||||
|
@ -45,6 +45,8 @@
|
||||
<dd>{{#str}}requiresattentionexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
<dt><span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span></dt>
|
||||
<dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
<dt><span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span></dt>
|
||||
<dd>{{#str}}deprecatedexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
</dl>
|
||||
<hr />
|
||||
<div class="clearfix"><a class="tool_dataprivacy-expand-all pull-right" href="#" data-visibility-state='visible'>{{#str}}visible, tool_dataprivacy{{/str}}</a></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user