MDL-76867 core: Add plugintype_supports_disabling to plugininfo
This commit is contained in:
@@ -71,6 +71,15 @@ abstract class base {
|
||||
/** @var array|null array of {@link \core\update\info} for this plugin */
|
||||
protected $availableupdates;
|
||||
|
||||
/**
|
||||
* Whether this plugintype supports its plugins being disabled.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function plugintype_supports_disabling(): bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds all enabled plugins, the result may include missing plugins.
|
||||
* @return array|null of enabled plugins $pluginname=>$pluginname, null means unknown
|
||||
|
||||
Reference in New Issue
Block a user