file-widget.html.twig in Zircon Profile 8.0
Same filename in this branch
Same filename and directory in other branches
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.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_file_widget()
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes }}>
- {{ element }}
- </div>