summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Trash
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-10-02 16:36:53 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-05 10:23:30 +0200
commitce433637dad27e944ff2d78167ba962cb2273bad (patch)
treef5a55f235351f2b4146e17ddada1db51db62bd33 /apps/files_trashbin/lib/Trash
parent2169c261957ee447cfdf27dac593508d8ecc16e9 (diff)
downloadnextcloud-server-ce433637dad27e944ff2d78167ba962cb2273bad.tar.gz
nextcloud-server-ce433637dad27e944ff2d78167ba962cb2273bad.zip
allow trash backends to overwrite the tooltip for trash items
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin/lib/Trash')
-rw-r--r--apps/files_trashbin/lib/Trash/ITrashItem.php2
-rw-r--r--apps/files_trashbin/lib/Trash/TrashItem.php4
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/Trash/ITrashItem.php b/apps/files_trashbin/lib/Trash/ITrashItem.php
index 74348cf1817..bd241c89a34 100644
--- a/apps/files_trashbin/lib/Trash/ITrashItem.php
+++ b/apps/files_trashbin/lib/Trash/ITrashItem.php
@@ -75,4 +75,6 @@ interface ITrashItem extends FileInfo {
* @since 15.0.0
*/
public function getUser(): IUser;
+
+ public function getTitle(): string;
}
diff --git a/apps/files_trashbin/lib/Trash/TrashItem.php b/apps/files_trashbin/lib/Trash/TrashItem.php
index a0a0e1f67ce..0112b6dbc8e 100644
--- a/apps/files_trashbin/lib/Trash/TrashItem.php
+++ b/apps/files_trashbin/lib/Trash/TrashItem.php
@@ -173,4 +173,8 @@ class TrashItem implements ITrashItem {
public function getExtension(): string {
return $this->fileInfo->getExtension();
}
+
+ public function getTitle(): string {
+ return $this->getOriginalLocation();
+ }
}