diff options
Diffstat (limited to 'lib/public/Dashboard/IButtonWidget.php')
-rw-r--r-- | lib/public/Dashboard/IButtonWidget.php | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/lib/public/Dashboard/IButtonWidget.php b/lib/public/Dashboard/IButtonWidget.php index cc0297fe7bc..5745c368c96 100644 --- a/lib/public/Dashboard/IButtonWidget.php +++ b/lib/public/Dashboard/IButtonWidget.php @@ -22,6 +22,8 @@ declare(strict_types=1); */ namespace OCP\Dashboard; +use OCP\Dashboard\Model\WidgetButton; + /** * Adds a button to the dashboard api representation * @@ -29,23 +31,11 @@ namespace OCP\Dashboard; */ interface IButtonWidget extends IWidget { /** - * Get the absolute url for the button target - * - * @return string - */ - public function getButtonUrl(): string; - - /** - * Get the absolute url for the button icon - * - * @return string - */ - public function getButtonIconUrl(): ?string; - - /** - * Get the text to show in the button + * Get the buttons to show on the widget * - * @return string + * @param string $userId + * @return WidgetButton[] + * @since 25.0.0 */ - public function getButtonText(): string; + public function getWidgetButtons(string $userId): array; } |