sonata admin custom list field (not from entity)
Sonata admin bundle documentation seems scarce and I did not find a way implement this. Goal: display boolean value in field list. Value should calculated for each object from other properties. I managed to implement this for datagridFilter as doctrine_orm_callback but not for listFields. Working code for configureDatagridFilters() : // LicenceAdmin.php protected function configureDatagridFilters(DatagridMapper $datagridMapper) { $datagridMapper->add('isValid', 'doctrine_orm_callback', [ 'callback' => [$this, 'isValidFilterCallback'], 'field_type' => 'checkbox', ]); } public function