IManager.php 504 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Dashboard;
  8. /**
  9. * Interface IManager
  10. *
  11. * @since 20.0.0
  12. */
  13. interface IManager {
  14. /**
  15. * @param string $widgetClass
  16. * @since 20.0.0
  17. */
  18. public function lazyRegisterWidget(string $widgetClass, string $appId): void;
  19. /**
  20. * @since 20.0.0
  21. *
  22. * @return array<string, IWidget>
  23. */
  24. public function getWidgets(): array;
  25. }