diff options
Diffstat (limited to 'lib/public/Dashboard/IButtonWidget.php')
-rw-r--r-- | lib/public/Dashboard/IButtonWidget.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/Dashboard/IButtonWidget.php b/lib/public/Dashboard/IButtonWidget.php new file mode 100644 index 00000000000..f4ebd9253c7 --- /dev/null +++ b/lib/public/Dashboard/IButtonWidget.php @@ -0,0 +1,26 @@ +<?php + +declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCP\Dashboard; + +use OCP\Dashboard\Model\WidgetButton; + +/** + * Adds a button to the dashboard api representation + * + * @since 25.0.0 + */ +interface IButtonWidget extends IWidget { + /** + * Get the buttons to show on the widget + * + * @param string $userId + * @return list<WidgetButton> + * @since 25.0.0 + */ + public function getWidgetButtons(string $userId): array; +} |