File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ class SuppliersStatisticsFilter implements FilterInterface
34
34
->setParameter(':stats', $data['stats'])
35
35
;
36
36
37
- // For driver abstraction you can use the expression builder. ExpressionBuilder is a kind of query builder.
37
+ // You can leverage the ExpressionBuilder to apply driver-agnostic filters to the data source.
38
+ // Combined with restrict(), it provides query builder–style functionality for grid filters.
38
39
// $data['stats'] contains the submitted value!
39
- // here is an example
40
40
$dataSource->restrict($dataSource->getExpressionBuilder()->equals('stats', $data['stats']));
41
41
}
42
42
}
@@ -90,7 +90,7 @@ Create a template for the filter, similar to the existing ones:
90
90
```
91
91
{% endcode %}
92
92
93
- Now you can use your new filter type in the grid configuration!
93
+ Your custom filter is now ready to be plugged into the grid configuration using its service alias or FQCN.
94
94
95
95
{% code title="src/Grid/TournamentGrid.php" lineNumbers="true" %}
96
96
``` php
You can’t perform that action at this time.
0 commit comments