aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-23 17:48:24 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:17 +0100
commit88aa3de7842a5113de5f137ba57bdae1f77777b5 (patch)
tree41be56cdfaa58851e271e59433a895240555ed26 /lib/public/Collaboration
parent555afff015ec2fa785726bf0d9169d25d53ba679 (diff)
downloadnextcloud-server-88aa3de7842a5113de5f137ba57bdae1f77777b5.tar.gz
nextcloud-server-88aa3de7842a5113de5f137ba57bdae1f77777b5.zip
Add iconClass to resources
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r--lib/public/Collaboration/Resources/IProvider.php9
-rw-r--r--lib/public/Collaboration/Resources/IResource.php6
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Resources/IProvider.php b/lib/public/Collaboration/Resources/IProvider.php
index bf338113005..c5f6f7ed560 100644
--- a/lib/public/Collaboration/Resources/IProvider.php
+++ b/lib/public/Collaboration/Resources/IProvider.php
@@ -36,6 +36,15 @@ interface IProvider {
public function getName(IResource $resource): string;
/**
+ * Get the icon class of a resource
+ *
+ * @param IResource $resource
+ * @return string
+ * @since 15.0.0
+ */
+ public function getIconClass(IResource $resource): string;
+
+ /**
* Can a user/guest access the collection
*
* @param IResource $resource
diff --git a/lib/public/Collaboration/Resources/IResource.php b/lib/public/Collaboration/Resources/IResource.php
index 242ad9432d0..9a4b2b30d10 100644
--- a/lib/public/Collaboration/Resources/IResource.php
+++ b/lib/public/Collaboration/Resources/IResource.php
@@ -48,6 +48,12 @@ interface IResource {
public function getName(): string;
/**
+ * @return string
+ * @since 15.0.0
+ */
+ public function getIconClass(): string;
+
+ /**
* Can a user/guest access the resource
*
* @param IUser $user