You are here

file-widget.html.twig in Zircon Profile 8.0

Default theme implementation to display a file widget.

Available variables:

  • element: Form element for the managed file.
  • attributes: Remaining HTML attributes for the containing element.

See also

template_preprocess_file_widget()

File

core/modules/file/templates/file-widget.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a file widget.
  5. *
  6. * Available variables:
  7. * - element: Form element for the managed file.
  8. * - attributes: Remaining HTML attributes for the containing element.
  9. *
  10. * @see template_preprocess_file_widget()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <div{{ attributes }}>
  16. {{ element }}
  17. </div>

Related topics