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