I need to override the filter in Sonata AdminBundle to use a totally different kind of filter using images.
For now it's a html form:
/**
* @param DatagridMapper $datagridMapper
*/
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('orderIdentifier', null, ['label' => 'N°'])
->add('orderDeliveryAddress', null, ['label' => 'Client'])
->add('partner.name', null, ['label' => 'Partenaire'])
->add('postal', null, ['label' => 'Code postal'])
->add('product.code', null, ['label' => 'Produit'])
->add('volume', null, ['label' => 'Volume', 'template'])
->add('deliveryType', null, ['label' => 'Type de livraison'])
->add('createdAt', null, ['label' => 'Date'])
->add('state', null, array('show_filter' => true), 'choice', array(
'choices' => $this->getConfigurationPool()->getContainer()->get('fm.command.order_status_manager')->countAllOrderByStatus(),
))
;
}
How can I totally override this method?
href
links. Do you think it's possible? – Kevin