You are here

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

Default theme implementation to display a file form widget.

Available variables:

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

File

core/modules/file/templates/file-managed-file.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  13. */
  14. #}
  15. {%
  16. set classes = [
  17. 'js-form-managed-file',
  18. 'form-managed-file',
  19. ]
  20. %}
  21. <div{{ attributes.addClass(classes) }}>
  22. {{ element }}
  23. </div>

Related topics