{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% if field_description.options.identifier is defined and field_description.options.route is defined and admin.hasAccess(field_description.options.route.name, object) and admin.hasRoute(field_description.options.route.name) %} {%- block field %}{{ value }}{% endblock -%} {% else %} {{ block('field') }} {% endif %}