Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

file-widget-multiple.html.twig

Same filename in this branch
  1. 11.1.x core/themes/stable9/templates/content-edit/file-widget-multiple.html.twig
  2. 11.1.x core/themes/starterkit_theme/templates/content-edit/file-widget-multiple.html.twig
  3. 11.1.x core/modules/file/templates/file-widget-multiple.html.twig

Theme override to display a multiple file upload form widget.

Available variables:

  • table: Table of previously uploaded files.
  • element: The form element for uploading another file.
  • has_table: True when the table is not empty AND can be accessed.

See also

template_preprocess_file_widget_multiple()

claro_preprocess_file_widget_multiple()

File

core/themes/claro/templates/content-edit/file-widget-multiple.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a multiple file upload form widget.
  5. *
  6. * Available variables:
  7. * - table: Table of previously uploaded files.
  8. * - element: The form element for uploading another file.
  9. * - has_table: True when the table is not empty AND can be accessed.
  10. *
  11. * @see template_preprocess_file_widget_multiple()
  12. * @see claro_preprocess_file_widget_multiple()
  13. */
  14. #}
  15. <div class="file-widget-multiple{{ has_table ? ' has-table' }}">
  16. <div class="file-widget-multiple__table-wrapper">
  17. {{ table }}
  18. {{ element }}
  19. </div>
  20. </div>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal