diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-02-04 11:11:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 11:11:33 +0100 |
commit | 9db1ccdf2ce8381e1f3acb581d3c6a6def095d8c (patch) | |
tree | 97a618b77d327a5f963c91522988e24db5a9e158 /tests/plugins | |
parent | 8997ae6c8e24286f7d47981eaf905e80d2481c10 (diff) | |
parent | bcba6bd353161fab456b423e93571ab027d5423c (diff) | |
download | Shaarli-master.tar.gz Shaarli-master.tar.zst Shaarli-master.zip |
New plugin hook: ability to add custom filters to Shaarli search engine
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/test/test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index 34cd339e..8dbb3f94 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php | |||
@@ -1,5 +1,7 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use Shaarli\Bookmark\Bookmark; | ||
4 | |||
3 | /** | 5 | /** |
4 | * Hook for test. | 6 | * Hook for test. |
5 | * | 7 | * |
@@ -43,3 +45,8 @@ function test_register_routes(): array | |||
43 | ], | 45 | ], |
44 | ]; | 46 | ]; |
45 | } | 47 | } |
48 | |||
49 | function hook_test_filter_search_entry(Bookmark $bookmark, array $context): bool | ||
50 | { | ||
51 | return $context['_result']; | ||
52 | } | ||