MDL-86915 core: define "core" plugin type string.

Per ae7f3dfd this is now required for all plugin types. In this
specific case, it's used by the privacy plugin registry.
This commit is contained in:
Paul Holden
2025-10-21 21:43:57 +01:00
parent d33ecac29c
commit a9497e1925
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -135,6 +135,8 @@ $string['type_communication'] = 'Communication provider';
$string['type_communication_plural'] = 'Communication providers';
$string['type_contenttype'] = 'Content bank';
$string['type_contenttype_plural'] = 'Content bank plugins';
$string['type_core'] = 'Core sub-system';
$string['type_core_plural'] = 'Core sub-systems';
$string['type_customfield'] = 'Custom field';
$string['type_customfield_plural'] = 'Custom fields';
$string['type_coursereport'] = 'Course report';
+10
View File
@@ -247,6 +247,16 @@ final class plugin_manager_test extends \advanced_testcase {
$this->assertSame(get_string('type_editor_plural', 'core_plugin'), $name);
}
public function test_plugintype_name_core(): void {
$name = core_plugin_manager::instance()->plugintype_name('core');
$this->assertSame(get_string('type_core', 'core_plugin'), $name);
}
public function test_plugintype_name_core_plural(): void {
$name = core_plugin_manager::instance()->plugintype_name_plural('core');
$this->assertSame(get_string('type_core_plural', 'core_plugin'), $name);
}
public function test_get_plugin_info(): void {
global $CFG;