aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-06 16:56:14 +0200
committerGitHub <noreply@github.com>2022-09-06 16:56:14 +0200
commitff49fa4415ba5f5cb04e1521c9be0c8daf485e0c (patch)
tree69b2a8f022dffe81c95e8037e84b990629a0a790 /lib/private
parent36b2d3dc2a7978a3f19b9888bb03ecd2f566f59e (diff)
parent2397ea72196de42a79e2a5873dcbb07db698f348 (diff)
downloadnextcloud-server-ff49fa4415ba5f5cb04e1521c9be0c8daf485e0c.tar.gz
nextcloud-server-ff49fa4415ba5f5cb04e1521c9be0c8daf485e0c.zip
Merge pull request #29881 from nextcloud/fix/setting/accessibility-title
Improve accessibility of the title of the settings
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Settings/Manager.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index 05a286e4758..44f1df09c15 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -150,6 +150,13 @@ class Manager implements IManager {
return $this->sections[$type];
}
+ public function getSection(string $type, string $sectionId): ?IIconSection {
+ if (isset($this->sections[$type]) && isset($this->sections[$type][$sectionId])) {
+ return $this->sections[$type][$sectionId];
+ }
+ return null;
+ }
+
protected function isKnownDuplicateSectionId(string $sectionID): bool {
return in_array($sectionID, [
'connected-accounts',