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/bartik/templates/classy/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. {{ attach_library('bartik/classy.file') }}
  14. {%
  15. set classes = [
  16. 'js-form-managed-file',
  17. 'form-managed-file',
  18. ]
  19. %}
  20. <div{{ attributes.addClass(classes) }}>
  21. {{ element }}
  22. </div>