Avoid config form field type "machine_name"

Issue information

From user: jurgenhaas

Related to !507 (merged)

Contribution record

Fork management

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_name is 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information