vendor/easycorp/easyadmin-bundle/src/Resources/views/default/field_image.html.twig line 1

Open in your IDE?
  1. {# this check is needed because image fields can be optional #}
  2. {% if value is empty or value == (field_options.base_path|default(''))|trim('/', side='right') ~ '/' %}
  3.     {{ include(entity_config.templates.label_empty) }}
  4. {% else %}
  5.     <a href="#" class="easyadmin-thumbnail" data-featherlight="#easyadmin-lightbox-{{ uuid }}" data-featherlight-close-on-click="anywhere">
  6.         <img src="{{ asset(value) }}">
  7.     </a>
  8.     <div id="easyadmin-lightbox-{{ uuid }}" class="easyadmin-lightbox">
  9.         <img src="{{ asset(value) }}">
  10.     </div>
  11. {% endif %}