MDL-76867 core: Add plugintype_supports_disabling to plugininfo

This commit is contained in:
Andrew Nicols
2023-03-14 08:34:42 +08:00
parent 6809289cf4
commit fdb1df2bfd
27 changed files with 240 additions and 0 deletions
+4
View File
@@ -35,6 +35,10 @@ namespace core\plugininfo;
*/
class qbank extends base {
public static function plugintype_supports_disabling(): bool {
return true;
}
public function is_uninstall_allowed(): bool {
if (in_array($this->name, \core_plugin_manager::standard_plugins_list('qbank'))) {
return false;