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

Breadcrumb

  1. Drupal Core 11.1.x

file-upload-help.html.twig

Same filename in this branch
  1. 11.1.x core/themes/stable9/templates/content-edit/file-upload-help.html.twig
  2. 11.1.x core/modules/file/templates/file-upload-help.html.twig

Theme override 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/themes/starterkit_theme/templates/content-edit/file-upload-help.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  12. {{ descriptions|safe_join('<br />') }}

API Navigation

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