You are here

file-managed-file.html.twig in Drupal 10

Theme override to display a file form widget.

Available variables:

  • element: Form element for the file upload.
  • attributes: HTML attributes for the containing element.

File

core/themes/stable/templates/content-edit/file-managed-file.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a file form widget.
  5. *
  6. * Available variables:
  7. * - element: Form element for the file upload.
  8. * - attributes: HTML attributes for the containing element.
  9. *
  10. * @see template_preprocess_file_managed_file()
  11. */
  12. #}
  13. {%
  14. set classes = [
  15. 'js-form-managed-file',
  16. 'form-managed-file',
  17. ]
  18. %}
  19. <div{{ attributes.addClass(classes) }}>
  20. {{ element }}
  21. </div>