src/Compo/Sonata/DashboardBundle/Admin/BlockAdmin.php
public function toString($object)
    {
        if (!\is_object($object)) {
            return '';
        }
        if (method_exists($object, 'getName') && null !== $object->getName()) {
            return (string) $object->getName();
        }

        return parent::toString($object);
    }
public function toString($object)
    {
        if (!\is_object($object)) {
            return '';
        }
        if (method_exists($object, 'getName') && null !== $object->getName()) {
            return (string) $object->getName();
        }

        return parent::toString($object);
    }
public function toString ( $ object ) { if ( ! \ is_object ( $ object ) ) { return '' ; } if ( method_exists ( $ object , 'getName' ) && null !== $ object -> getName ( ) ) { return ( string ) $ object -> getName ( ) ; } return parent :: toString ( $ object ) ; }
Override needed to make the dashboard composer cleaner.

{@inheritdoc}
Override needed to make the dashboard composer cleaner .