aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Resources/Manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Collaboration/Resources/Manager.php')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php48
1 files changed, 5 insertions, 43 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index d1b84f96283..bfe95a74514 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -285,41 +285,23 @@ class Manager implements IManager {
}
/**
- * Get the display name of a resource
+ * Get the rich object data of a resource
*
* @param IResource $resource
- * @return string
+ * @return array
* @since 16.0.0
*/
- public function getName(IResource $resource): string {
- foreach ($this->getProviders() as $provider) {
- if ($provider->getType() === $resource->getType()) {
- try {
- return $provider->getName($resource);
- } catch (ResourceException $e) {
- }
- }
- }
-
- return '';
- }
-
- /**
- *
- * @param IResource $resource
- * @return string
- */
- public function getIconLink(IResource $resource): string {
+ public function getResourceRichObject(IResource $resource): array {
foreach ($this->getProviders() as $provider) {
if ($provider->getType() === $resource->getType()) {
try {
- return $provider->getIconLink($resource);
+ return $provider->getResourceRichObject($resource);
} catch (ResourceException $e) {
}
}
}
- return '';
+ return [];
}
/**
@@ -541,24 +523,4 @@ class Manager implements IManager {
public function getType(): string {
return '';
}
-
- /**
- * Get the link to a resource
- *
- * @param IResource $resource
- * @return string
- * @since 16.0.0
- */
- public function getLink(IResource $resource): string {
- foreach ($this->getProviders() as $provider) {
- if ($provider->getType() === $resource->getType()) {
- try {
- return $provider->getLink($resource);
- } catch (ResourceException $e) {
- }
- }
- }
-
- return '';
- }
}