You are here

file-widget.html.twig in Zircon Profile 8.0

Theme override 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/themes/classy/templates/content-edit/file-widget.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  13. {{ attach_library('classy/file') }}
  14. <div{{ attributes }}>
  15. {{ element }}
  16. </div>