2022-08-23 09:03:41 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-08-23 09:03:41 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Dashboard;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allow getting the absolute icon url for a widget
|
|
|
|
|
*
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IIconWidget extends IWidget {
|
|
|
|
|
/**
|
2024-07-11 07:24:10 -04:00
|
|
|
* Get the absolute url for the widget icon (should be colored black or not have a color)
|
|
|
|
|
*
|
|
|
|
|
* The icon will be inverted automatically in mobile clients and when using dark mode
|
2022-08-23 09:03:41 -04:00
|
|
|
*
|
|
|
|
|
* @return string
|
2022-09-16 02:23:04 -04:00
|
|
|
* @since 25.0.0
|
2022-08-23 09:03:41 -04:00
|
|
|
*/
|
|
|
|
|
public function getIconUrl(): string;
|
|
|
|
|
}
|