Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('alpixel_elastica_query_sorter'); |
||
22 | |||
23 | $rootNode |
||
24 | ->children() |
||
25 | ->arrayNode('views') |
||
26 | ->children() |
||
27 | ->scalarNode('clear_sort') |
||
28 | ->defaultvalue('AlpixelElasticaQuerySorterBundle:blocks:clear_sort.html.twig') |
||
29 | ->end() |
||
30 | ->scalarNode('sort_link') |
||
31 | ->defaultvalue('AlpixelElasticaQuerySorterBundle:blocks:sort_link.html.twig') |
||
32 | ->end() |
||
33 | ->end() |
||
34 | ->end() |
||
35 | ->scalarNode('item_per_page') |
||
36 | ->defaultvalue(25) |
||
37 | ->end() |
||
38 | ->end(); |
||
39 | |||
40 | // Here you should define the parameters that are allowed to |
||
41 | // configure your bundle. See the documentation linked above for |
||
42 | // more information on that topic. |
||
43 | |||
44 | return $treeBuilder; |
||
45 | } |
||
46 | } |
||
47 |