file-upload-help.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/content-edit/file-upload-help.html.twig
  2. 10 core/themes/starterkit_theme/templates/content-edit/file-upload-help.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/content-edit/file-upload-help.html.twig
  2. 9 core/themes/stable/templates/content-edit/file-upload-help.html.twig
  3. 9 core/themes/starterkit_theme/templates/content-edit/file-upload-help.html.twig
  4. 9 core/themes/classy/templates/content-edit/file-upload-help.html.twig
  5. 9 core/modules/file/templates/file-upload-help.html.twig
  6. 8.9.x core/themes/stable/templates/content-edit/file-upload-help.html.twig
  7. 8.9.x core/themes/classy/templates/content-edit/file-upload-help.html.twig
  8. 8.9.x core/modules/file/templates/file-upload-help.html.twig
  9. 11.x core/themes/stable9/templates/content-edit/file-upload-help.html.twig
  10. 11.x core/themes/starterkit_theme/templates/content-edit/file-upload-help.html.twig
  11. 11.x core/modules/file/templates/file-upload-help.html.twig

Default theme implementation to display help text for file fields.

Available variables:

  • descriptions: Lines of help text for uploading a file.

See also

template_preprocess_file_upload_help()

6 theme calls to file-upload-help.html.twig
FileUploadForm::buildInputElement in core/modules/media_library/src/Form/FileUploadForm.php
Builds the element for submitting source field value(s).
FileWidget::formElement in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Returns the form for a single field widget.
FileWidget::formMultipleElements in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Overrides \Drupal\Core\Field\WidgetBase::formMultipleElements().
ImageWidget::formMultipleElements in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Overrides \Drupal\file\Plugin\Field\FieldWidget\FileWidget::formMultipleElements().
ImportForm::buildForm in core/modules/locale/src/Form/ImportForm.php
Form constructor for the translation import screen.

... See full list

File

core/modules/file/templates/file-upload-help.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display help text for file fields.
  5. *
  6. * Available variables:
  7. * - descriptions: Lines of help text for uploading a file.
  8. *
  9. * @see template_preprocess_file_upload_help()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {{ descriptions|safe_join('<br />') }}

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.