2020-05-27 07:07:17 +00:00
|
|
|
<?php
|
2020-07-10 12:13:29 +00:00
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-05-27 07:07:17 +00:00
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-05-27 07:07:17 +00:00
|
|
|
*/
|
|
|
|
namespace OCP\Dashboard;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface IManager
|
|
|
|
*
|
|
|
|
* @since 20.0.0
|
|
|
|
*/
|
|
|
|
interface IManager {
|
2020-06-23 13:23:28 +00:00
|
|
|
/**
|
2020-08-04 13:20:05 +00:00
|
|
|
* @param string $widgetClass
|
2020-06-23 13:23:28 +00:00
|
|
|
* @since 20.0.0
|
|
|
|
*/
|
2022-06-22 13:53:12 +00:00
|
|
|
public function lazyRegisterWidget(string $widgetClass, string $appId): void;
|
2020-06-23 13:23:28 +00:00
|
|
|
|
2020-05-27 07:07:17 +00:00
|
|
|
/**
|
|
|
|
* @since 20.0.0
|
|
|
|
*
|
2023-09-19 15:14:02 +00:00
|
|
|
* @return array<string, IWidget>
|
2020-05-27 07:07:17 +00:00
|
|
|
*/
|
2020-08-04 13:20:05 +00:00
|
|
|
public function getWidgets(): array;
|
2020-05-27 07:07:17 +00:00
|
|
|
}
|