2022-08-29 10:12:43 -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-29 10:12:43 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Dashboard;
|
|
|
|
|
|
2022-09-01 11:12:43 -04:00
|
|
|
use OCP\Dashboard\Model\WidgetButton;
|
|
|
|
|
|
2022-08-29 10:12:43 -04:00
|
|
|
/**
|
|
|
|
|
* Adds a button to the dashboard api representation
|
|
|
|
|
*
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IButtonWidget extends IWidget {
|
|
|
|
|
/**
|
2022-09-01 11:12:43 -04:00
|
|
|
* Get the buttons to show on the widget
|
2022-08-29 10:12:43 -04:00
|
|
|
*
|
2022-09-01 11:12:43 -04:00
|
|
|
* @param string $userId
|
2024-09-24 09:53:13 -04:00
|
|
|
* @return list<WidgetButton>
|
2022-09-01 11:12:43 -04:00
|
|
|
* @since 25.0.0
|
2022-08-29 10:12:43 -04:00
|
|
|
*/
|
2022-09-01 11:12:43 -04:00
|
|
|
public function getWidgetButtons(string $userId): array;
|
2022-08-29 10:12:43 -04:00
|
|
|
}
|