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/Sabre/PropfindPlugin.php | |
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/Sabre/PropfindPlugin.php')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/PropfindPlugin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/Sabre/PropfindPlugin.php b/apps/files_trashbin/lib/Sabre/PropfindPlugin.php index 19da79fd2a3..81fed3eba2b 100644 --- a/apps/files_trashbin/lib/Sabre/PropfindPlugin.php +++ b/apps/files_trashbin/lib/Sabre/PropfindPlugin.php @@ -37,6 +37,7 @@ class PropfindPlugin extends ServerPlugin { const TRASHBIN_FILENAME = '{http://nextcloud.org/ns}trashbin-filename'; const TRASHBIN_ORIGINAL_LOCATION = '{http://nextcloud.org/ns}trashbin-original-location'; const TRASHBIN_DELETION_TIME = '{http://nextcloud.org/ns}trashbin-deletion-time'; + const TRASHBIN_TITLE = '{http://nextcloud.org/ns}trashbin-title'; /** @var Server */ private $server; @@ -70,6 +71,10 @@ class PropfindPlugin extends ServerPlugin { return $node->getOriginalLocation(); }); + $propFind->handle(self::TRASHBIN_TITLE, function () use ($node) { + return $node->getTitle(); + }); + $propFind->handle(self::TRASHBIN_DELETION_TIME, function () use ($node) { return $node->getDeletionTime(); }); |