diff options
author | Robin Appelman <robin@icewind.nl> | 2022-08-23 15:03:41 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-15 18:05:52 +0200 |
commit | 0e5944748df24fde54e34cb1fcc0f15fb0d734de (patch) | |
tree | 1db9950f0d21c4757947b6cb0ab1a920767b943c /lib/public | |
parent | ca747b91d4aa907b191119f080d213bfb5e60fd2 (diff) | |
download | nextcloud-server-0e5944748df24fde54e34cb1fcc0f15fb0d734de.tar.gz nextcloud-server-0e5944748df24fde54e34cb1fcc0f15fb0d734de.zip |
add dashboard api to list widgets
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Dashboard/IIconWidget.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/Dashboard/IIconWidget.php b/lib/public/Dashboard/IIconWidget.php new file mode 100644 index 00000000000..b9928d5a6b3 --- /dev/null +++ b/lib/public/Dashboard/IIconWidget.php @@ -0,0 +1,37 @@ +<?php + +declare(strict_types=1); +/** + * @copyright Copyright (c) 2022 Robin Appelman <robin@icewind.nl> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +namespace OCP\Dashboard; + +/** + * Allow getting the absolute icon url for a widget + * + * @since 25.0.0 + */ +interface IIconWidget extends IWidget { + /** + * Get the absolute url for the widget icon + * + * @return string + */ + public function getIconUrl(): string; +} |