Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-04 19:15:09 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-05 12:37:45 +0300
commitd98f7c1bd83fc03fd297ebeac6279ffe17316950 (patch)
tree4f1f261e1033f441a0deaa30f5aeb56cbbb51c43 /lib/public/Search
parent71b62c4203a25beefeab73f73668919c813e3a50 (diff)
Make apps handle the order logic
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public/Search')
-rw-r--r--lib/public/Search/IProvider.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/Search/IProvider.php b/lib/public/Search/IProvider.php
index 66db62c6829..5a6cfb3fd03 100644
--- a/lib/public/Search/IProvider.php
+++ b/lib/public/Search/IProvider.php
@@ -68,11 +68,13 @@ interface IProvider {
* Get the search provider order
* The lower the int, the higher it will be sorted (0 will be before 10)
*
+ * @param string $from the url the user is currently at. (e.g. /apps/files/?dir=/&fileid=982)
+ *
* @return int
*
* @since 20.0.0
*/
- public function getOrder(): int;
+ public function getOrder(string $from): int;
/**
* Find matching search entries in an app