summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-24 12:03:52 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:18 +0100
commit3777df64ae0a4a3d79e000541c0c512fb3ebf304 (patch)
tree42b043e73f770a4b2fab422259c2969fa6d54a51 /lib/public
parent506eb885bcaf7d745b417a155defc7c1e0f344c1 (diff)
downloadnextcloud-server-3777df64ae0a4a3d79e000541c0c512fb3ebf304.tar.gz
nextcloud-server-3777df64ae0a4a3d79e000541c0c512fb3ebf304.zip
Add link to resource provider
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-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 0299bfd0ddf..9ffc5f4324b 100644
--- a/lib/public/Collaboration/Resources/IProvider.php
+++ b/lib/public/Collaboration/Resources/IProvider.php
@@ -54,6 +54,15 @@ interface IProvider {
public function getIconClass(IResource $resource): string;
/**
+ * Get the link to a resource
+ *
+ * @param IResource $resource
+ * @return string
+ * @since 15.0.0
+ */
+ public function getLink(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 9a4b2b30d10..d16b4c131d8 100644
--- a/lib/public/Collaboration/Resources/IResource.php
+++ b/lib/public/Collaboration/Resources/IResource.php
@@ -54,6 +54,12 @@ interface IResource {
public function getIconClass(): string;
/**
+ * @return string
+ * @since 15.0.0
+ */
+ public function getLink(): string;
+
+ /**
* Can a user/guest access the resource
*
* @param IUser $user