file -upload-help.html.twig

Theme override to display help text for file fields.

Available variables:

  • description: The normal description for this field, specified by the user.
  • descriptions: Lines of help text for uploading a file.
  • popover: Markup to display the descriptions as a popover instead.

See Also

  • template_preprocess_file_upload_help()
Source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display help text for file fields.
  5. *
  6. * Available variables:
  7. * - description: The normal description for this field, specified by the user.
  8. * - descriptions: Lines of help text for uploading a file.
  9. * - popover: Markup to display the descriptions as a popover instead.
  10. *
  11. * @ingroup templates
  12. *
  13. * @see template_preprocess_file_upload_help()
  14. */
  15. #}
  16. {% if description %}
  17. {{ description }}<br>
  18. {% endif %}
  19. {% if popover %}
  20. {{ popover }}
  21. {% else %}
  22. {{ descriptions|safe_join('<br>') }}
  23. {% endif %}

Related topics