IButtonWidget.php 539 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Dashboard;
  8. use OCP\Dashboard\Model\WidgetButton;
  9. /**
  10. * Adds a button to the dashboard api representation
  11. *
  12. * @since 25.0.0
  13. */
  14. interface IButtonWidget extends IWidget {
  15. /**
  16. * Get the buttons to show on the widget
  17. *
  18. * @param string $userId
  19. * @return list<WidgetButton>
  20. * @since 25.0.0
  21. */
  22. public function getWidgetButtons(string $userId): array;
  23. }