diff options
author | provokateurin <kate@provokateurin.de> | 2024-07-19 08:40:31 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-07-19 09:01:32 +0200 |
commit | f53814b2f989736ed535e9b79415ed93d0403a41 (patch) | |
tree | a29c8e9118d7853be0b2b167e7c3946226f7b46d /apps/dashboard/lib/Capabilities.php | |
parent | 1987e4d39b60788ecf8f907e6d75f2d17ac8195f (diff) | |
download | nextcloud-server-feat/core/features-api.tar.gz nextcloud-server-feat/core/features-api.zip |
feat(dashboard): Document supported API versions and featuresfeat/core/features-api
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/dashboard/lib/Capabilities.php')
-rw-r--r-- | apps/dashboard/lib/Capabilities.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Capabilities.php b/apps/dashboard/lib/Capabilities.php new file mode 100644 index 00000000000..adcbc123648 --- /dev/null +++ b/apps/dashboard/lib/Capabilities.php @@ -0,0 +1,38 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace OCA\Dashboard; + +use OCP\Capabilities\ICapability; +use OCP\Capabilities\IFeature; + +class Capabilities implements ICapability, IFeature { + /** + * @return array{dashboard: array{enabled: bool}} + */ + public function getCapabilities(): array { + return [ + 'dashboard' => [ + 'enabled' => true, + ], + ]; + } + + public function getFeatures(): array { + return [ + 'dashboard' => [ + 'widgets-v1', + 'widget-items-v1', + 'widget-items-v2', + 'layout-v3', + 'statuses-v3', + ], + ]; + } +} |