Good morning, I have a little problem using sonata admin bundle, let's suppose that I have a function which returns a String, I want to pass the result of this function into as a parameter in the datagrid : something like :
protected $datagridValues = array (
'email' => array ('type1' => 2, 'value' => function()), // type 2 : >
'_page' => 1, // Display the first page (default = 1)
'_sort_by' => 'id'
);
Any one knows a way to do this ? Thank you
You can override
getFilterParameters()
method to change your$datagridValues
: