-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata_provider.php
41 lines (40 loc) · 981 Bytes
/
data_provider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @see https://github.com/illuminatech/data-provider
* @see \Illuminatech\DataProvider\DataProvider::__construct()
* @see \Illuminatech\DataProvider\Selector::__construct()
* @see \Illuminatech\DataProvider\Sort::__construct()
* @see \Illuminatech\DataProvider\Pagination::__construct()
*/
return [
'fields' => [
'keyword' => 'fields',
'source_self_name' => false,
],
'include' => [
'keyword' => 'include',
],
'filter' => [
'keyword' => 'filter',
],
'sort' => [
'keyword' => 'sort',
'enable_multisort' => false,
],
'pagination' => [
'keyword' => null,
'appends' => true,
'page' => [
'keyword' => 'page',
],
'per_page' => [
'keyword' => 'per-page',
'min' => 1,
'max' => 100,
'default' => 15,
],
'cursor' => [
'keyword' => 'cursor',
],
],
];