diff options
author | Robin Appelman <robin@icewind.nl> | 2019-10-02 16:36:53 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-10-05 10:23:30 +0200 |
commit | ce433637dad27e944ff2d78167ba962cb2273bad (patch) | |
tree | f5a55f235351f2b4146e17ddada1db51db62bd33 /apps/files_trashbin/lib/Trash | |
parent | 2169c261957ee447cfdf27dac593508d8ecc16e9 (diff) | |
download | nextcloud-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.php | 2 | ||||
-rw-r--r-- | apps/files_trashbin/lib/Trash/TrashItem.php | 4 |
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(); + } } |