diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-15 22:03:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 22:03:12 +0200 |
commit | d39f047af210245adcd877baee090f6cc4a8f40c (patch) | |
tree | 455476f636c1002c22d321cb0341ec28ce127fdc /lib/public | |
parent | 0023a1066be72789a3785e30b78fc4d99dcd2403 (diff) | |
parent | 1998ac7b06e8845719db5cd276db59ac053bbcd2 (diff) | |
download | nextcloud-server-d39f047af210245adcd877baee090f6cc4a8f40c.tar.gz nextcloud-server-d39f047af210245adcd877baee090f6cc4a8f40c.zip |
Merge pull request #34072 from nextcloud/enh/noid/default-enabled-2
set defaultEnabled in shipped.json
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/App/IAppManager.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php index e0b5c049290..f7c9d848099 100644 --- a/lib/public/App/IAppManager.php +++ b/lib/public/App/IAppManager.php @@ -84,6 +84,17 @@ interface IAppManager { public function isInstalled($appId); /** + * Check if an app should be enabled by default + * + * Notice: This actually checks if the app should be enabled by default + * and not if currently installed/enabled + * + * @param string $appId ID of the app + * @since 25.0.0 + */ + public function isDefaultEnabled(string $appId):bool; + + /** * Enable an app for every user * * @param string $appId @@ -179,6 +190,12 @@ interface IAppManager { public function getAlwaysEnabledApps(); /** + * @return string[] app IDs + * @since 25.0.0 + */ + public function getDefaultEnabledApps(): array; + + /** * @param \OCP\IGroup $group * @return String[] * @since 17.0.0 |