MDL-39088 migrate editor uninstallation to plugin_manager
This commit is contained in:
@@ -3878,6 +3878,17 @@ class plugininfo_editor extends plugininfo_base {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic textarea editor can not be uninstalled.
|
||||
*/
|
||||
public function is_uninstall_allowed() {
|
||||
if ($this->name === 'textarea') {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the information about plugin availability
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user