src/DataDifferencer.php
protected function getObjectDisplay($object = null)
    {
        if (!$object || !$object->isInDB()) {
            return '';
        }

        // Use image tag
        // TODO Use CMSThumbnail instead to limit max size, blocked by DataDifferencerTest and GC
        // not playing nice with mocked images
        if ($object instanceof Image) {
            return $object->getTag();
        }

        // Format title
        return $object->obj('Title')->forTemplate();
    }
protected function getObjectDisplay($object = null)
    {
        if (!$object || !$object->isInDB()) {
            return '';
        }

        // Use image tag
        // TODO Use CMSThumbnail instead to limit max size, blocked by DataDifferencerTest and GC
        // not playing nice with mocked images
        if ($object instanceof Image) {
            return $object->getTag();
        }

        // Format title
        return $object->obj('Title')->forTemplate();
    }
protected function getObjectDisplay ( $ object = null ) { if ( ! $ object || ! $ object -> isInDB ( ) ) { return '' ; } // Use image tag // TODO Use CMSThumbnail instead to limit max size, blocked by DataDifferencerTest and GC // not playing nice with mocked images if ( $ object instanceof Image ) { return $ object -> getTag ( ) ; } // Format title return $ object -> obj ( 'Title' ) -> forTemplate ( ) ; }
Get HTML to display for a dataobject

@param DataObject $object
@return string HTML output
Get HTML to display for a dataobject