{% set isIndex = view is defined and view == 'index' %} {% if dataValue|instanceof('DateTime') and not isIndex %} {{ dataValue|localizeddate('none', 'none', app.request.locale, null, "cccc d MMMM Y 'à' HH:mm"|trans) }} {% elseif property is defined and property == 'locale' %} {{ dataValue }} {% elseif dataValue|isEmail %} {{ dataValue }} {% elseif dataValue|isBool %} {% if dataValue == false %} {% else %} {% endif %} {% elseif dataValue|isObject and 'PersistentCollection' in dataValue|getClass or dataValue|isArray %} {% if dataValue %}