1
0

IIconWidget.php 580 B

12345678910111213141516171819202122232425
  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. /**
  9. * Allow getting the absolute icon url for a widget
  10. *
  11. * @since 25.0.0
  12. */
  13. interface IIconWidget extends IWidget {
  14. /**
  15. * Get the absolute url for the widget icon (should be colored black or not have a color)
  16. *
  17. * The icon will be inverted automatically in mobile clients and when using dark mode
  18. *
  19. * @return string
  20. * @since 25.0.0
  21. */
  22. public function getIconUrl(): string;
  23. }