aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Config
diff options
context:
space:
mode:
authorF. E Noel Nfebe <fenn25.fn@gmail.com>2025-05-06 16:20:17 +0200
committerGitHub <noreply@github.com>2025-05-06 16:20:17 +0200
commit598579396cf522e7d56f41e28c4183b75de8045f (patch)
tree03587992c923be7df19771870cda805271c429b4 /apps/files_sharing/lib/Config
parent87bad3349646cb153d3aec637f876d1675a7d196 (diff)
parent46b98f3bcc6efa59af983f9daeb2c1c706f83fda (diff)
downloadnextcloud-server-598579396cf522e7d56f41e28c4183b75de8045f.tar.gz
nextcloud-server-598579396cf522e7d56f41e28c4183b75de8045f.zip
Merge pull request #52511 from nextcloud/feat/no-issue/show-remote-shares-as-internal-config
feat(files_sharing): Add command to control display area for federated shares
Diffstat (limited to 'apps/files_sharing/lib/Config')
-rw-r--r--apps/files_sharing/lib/Config/ConfigLexicon.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Config/ConfigLexicon.php b/apps/files_sharing/lib/Config/ConfigLexicon.php
new file mode 100644
index 00000000000..a463b4e7ef2
--- /dev/null
+++ b/apps/files_sharing/lib/Config/ConfigLexicon.php
@@ -0,0 +1,39 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCA\Files_Sharing\Config;
+
+use NCU\Config\Lexicon\ConfigLexiconEntry;
+use NCU\Config\Lexicon\ConfigLexiconStrictness;
+use NCU\Config\Lexicon\IConfigLexicon;
+use NCU\Config\ValueType;
+
+/**
+ * Config Lexicon for files_sharing.
+ *
+ * Please Add & Manage your Config Keys in that file and keep the Lexicon up to date!
+ *
+ * {@see IConfigLexicon}
+ */
+class ConfigLexicon implements IConfigLexicon {
+ public const SHOW_FEDERATED_AS_INTERNAL = 'show_federated_shares_as_internal';
+
+ public function getStrictness(): ConfigLexiconStrictness {
+ return ConfigLexiconStrictness::IGNORE;
+ }
+
+ public function getAppConfigs(): array {
+ return [
+ new ConfigLexiconEntry(self::SHOW_FEDERATED_AS_INTERNAL, ValueType::BOOL, false, 'shows federated shares as internal shares', true),
+ ];
+ }
+
+ public function getUserConfigs(): array {
+ return [];
+ }
+}