Problem/Motivation
Tokens are supported in field descriptions and it works correctly for more fields. For file/image widgets, the tokens are not replaced. I am marking it as major because tokens could be used to communicate important information and there is no workaround. Please change the priority if relevant.
To reproduce:
- Go to Structure -> Content Types -> Article -> Manage Fields -> Image on a plain Drupal 8 site (such as simplytest.me).
- Type a token such as '[site:name]' in the Help text box.
- Go to Create Content -> Article, the token in description is not replaced.
- Repeat the steps for another field such as body. The token is replaced.
- The token is not replaced on both file and image widgets regardless of cardinality.
Proposed resolution
Fix the bug.
Remaining tasks
Patch, review, and apply
User interface changes
None, except the tokens will work now.
API changes
None
Data model changes
None