diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2024-07-17 18:57:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 18:57:08 +0200 |
commit | 718ef5dea5288a13e9536fd9a611ff777ee7168d (patch) | |
tree | 952cef73e40bb468dd92d5d157f8a18fe603d447 /lib/public | |
parent | 7cb67c67c746d35f4762fb8e7a8ae40367a78fa5 (diff) | |
parent | e42bceac9fc5845ad3614d3254bbb270e0d9d847 (diff) | |
download | nextcloud-server-718ef5dea5288a13e9536fd9a611ff777ee7168d.tar.gz nextcloud-server-718ef5dea5288a13e9536fd9a611ff777ee7168d.zip |
Merge pull request #46510 from nextcloud/feat/info-xml-backends
feat: hide caldav server settings if no app uses the caldav backend
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/App/IAppManager.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php index 508143426f5..e11bb0c36f5 100644 --- a/lib/public/App/IAppManager.php +++ b/lib/public/App/IAppManager.php @@ -20,6 +20,11 @@ use OCP\IUser; */ interface IAppManager { /** + * @since 30.0.0 + */ + public const BACKEND_CALDAV = 'caldav'; + + /** * Returns the app information from "appinfo/info.xml". * * @param string|null $lang @@ -261,4 +266,14 @@ interface IAppManager { * @since 28.0.0 */ public function setDefaultApps(array $defaultApps): void; + + /** + * Check whether the given backend is required by at least one app. + * + * @param self::BACKEND_* $backend Name of the backend, one of `self::BACKEND_*` + * @return bool True if at least one app requires the backend + * + * @since 30.0.0 + */ + public function isBackendRequired(string $backend): bool; } |