{#
/**
 * @file
 * Theme implementation to display a file form widget or other content.
 *
 * This is identical to core/modules/file/templates/file-managed-file.html.twig
 * except that its contents may be replaced.
 *
 * Available variables:
 * - content: When set, display only this.
 * - element: Form element for the file upload.
 * - attributes: HTML attributes for the containing element.
 *
 * @see \Drupal\file\Hook\FileThemeHooks::preprocessManagedFile()
 *
 * @ingroup themeable
 */
#}
{% if content %}
  {{ content }}
{% else %}
  {%
    set classes = [
      'js-form-managed-file',
      'form-managed-file',
    ]
  %}
  <div{{ attributes.addClass(classes) }}>
    {{ element }}
  </div>
{% endif %}
