Avoid config form field type "machine_name"
Problem/Motivation
This is a follow-up issue on #3518824: Token name in RenderElementActionBase cannot be specified as nested token and we should consistently avoid the usage of machine_name as a form field type.
Proposed resolution
- There are 11 other cases where the field type
machine_nameis being used, most of them allow tokens as well and could run into the same problem. We should replace them all for consistency. - Most of those cases support tokens or require a token reference, both of which not being declared in the form field configuration. That should be added.
- Form field validation: those fields that get the token reference attribute will still be validated. But others won't. We may consider our own validation as a replacement for the machine name validation that we've then lost.
Edited by drupalbot