File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 <admin-section >OCA\Settings\Sections\Admin\Additional</admin-section >
3939 <admin-section >OCA\Settings\Sections\Admin\Delegation</admin-section >
4040 <admin-section >OCA\Settings\Sections\Admin\Groupware</admin-section >
41+ <admin-section >OCA\Settings\Sections\Admin\Office</admin-section >
4142 <admin-section >OCA\Settings\Sections\Admin\Overview</admin-section >
4243 <admin-section >OCA\Settings\Sections\Admin\Presets</admin-section >
4344 <admin-section >OCA\Settings\Sections\Admin\ArtificialIntelligence</admin-section >
Original file line number Diff line number Diff line change 5353 'OCA \\Settings \\Sections \\Admin \\ArtificialIntelligence ' => $ baseDir . '/../lib/Sections/Admin/ArtificialIntelligence.php ' ,
5454 'OCA \\Settings \\Sections \\Admin \\Delegation ' => $ baseDir . '/../lib/Sections/Admin/Delegation.php ' ,
5555 'OCA \\Settings \\Sections \\Admin \\Groupware ' => $ baseDir . '/../lib/Sections/Admin/Groupware.php ' ,
56+ 'OCA \\Settings \\Sections \\Admin \\Office ' => $ baseDir . '/../lib/Sections/Admin/Office.php ' ,
5657 'OCA \\Settings \\Sections \\Admin \\Overview ' => $ baseDir . '/../lib/Sections/Admin/Overview.php ' ,
5758 'OCA \\Settings \\Sections \\Admin \\Presets ' => $ baseDir . '/../lib/Sections/Admin/Presets.php ' ,
5859 'OCA \\Settings \\Sections \\Admin \\Security ' => $ baseDir . '/../lib/Sections/Admin/Security.php ' ,
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ class ComposerStaticInitSettings
6868 'OCA \\Settings \\Sections \\Admin \\ArtificialIntelligence ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/ArtificialIntelligence.php ' ,
6969 'OCA \\Settings \\Sections \\Admin \\Delegation ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Delegation.php ' ,
7070 'OCA \\Settings \\Sections \\Admin \\Groupware ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Groupware.php ' ,
71+ 'OCA \\Settings \\Sections \\Admin \\Office ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Office.php ' ,
7172 'OCA \\Settings \\Sections \\Admin \\Overview ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Overview.php ' ,
7273 'OCA \\Settings \\Sections \\Admin \\Presets ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Presets.php ' ,
7374 'OCA \\Settings \\Sections \\Admin \\Security ' => __DIR__ . '/.. ' . '/../lib/Sections/Admin/Security.php ' ,
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ /**
6+ * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
7+ * SPDX-License-Identifier: AGPL-3.0-or-later
8+ */
9+
10+ namespace OCA \Settings \Sections \Admin ;
11+
12+ use OCP \IL10N ;
13+ use OCP \IURLGenerator ;
14+ use OCP \Settings \IIconSection ;
15+
16+ class Office implements IIconSection {
17+
18+ public function __construct (
19+ private IL10N $ l ,
20+ private IURLGenerator $ urlGenerator ,
21+ ) {
22+ }
23+
24+ #[\Override]
25+ public function getIcon (): string {
26+ return $ this ->urlGenerator ->imagePath ('core ' , 'apps/richdocuments.svg ' );
27+ }
28+
29+ #[\Override]
30+ public function getID (): string {
31+ return 'office ' ;
32+ }
33+
34+ #[\Override]
35+ public function getName (): string {
36+ return $ this ->l ->t ('Office ' );
37+ }
38+
39+ #[\Override]
40+ public function getPriority (): int {
41+ return 50 ;
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments