summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Resources/Resource.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Collaboration/Resources/Resource.php')
-rw-r--r--lib/private/Collaboration/Resources/Resource.php40
1 files changed, 7 insertions, 33 deletions
diff --git a/lib/private/Collaboration/Resources/Resource.php b/lib/private/Collaboration/Resources/Resource.php
index 0a3c003b27c..038f1d6162d 100644
--- a/lib/private/Collaboration/Resources/Resource.php
+++ b/lib/private/Collaboration/Resources/Resource.php
@@ -49,14 +49,8 @@ class Resource implements IResource {
/** @var bool|null */
protected $access;
- /** @var string|null */
- protected $name;
-
- /** @var string|null */
- protected $iconClass;
-
- /** @var string|null */
- protected $link;
+ /** @var array|null */
+ protected $data;
public function __construct(
IManager $manager,
@@ -91,35 +85,15 @@ class Resource implements IResource {
}
/**
- * @return string
+ * @return array
* @since 16.0.0
*/
- public function getName(): string {
- if ($this->name === null) {
- $this->name = $this->manager->getName($this);
- }
-
- return $this->name;
- }
-
- /**
- * @return string
- * @since 16.0.0
- */
- public function getIconLink(): string {
- if ($this->iconClass === null) {
- $this->iconClass = $this->manager->getIconLink($this);
- }
-
- return $this->iconClass;
- }
-
- public function getLink(): string {
- if ($this->link === null) {
- $this->link = $this->manager->getLink($this);
+ public function getRichObject(): array {
+ if ($this->data === null) {
+ $this->data = $this->manager->getResourceRichObject($this);
}
- return $this->link;
+ return $this->data;
}
/**