Make token names consistent
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3325190. --> Reported by: [jurgenhaas](https://www.drupal.org/user/168924) Related to !293 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>This is a follow-up on <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/eca/-/work_items/3315709" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/eca/-/work_items/3315709</a></span> and we may want to make token names provided by ECA more consistent. In particular, ECA provides these:</p> <ul> <li>form, current-form</li> <li>user, current_user</li> </ul> <p>There is a hyphen and an underscore, that should be the same one. And as the token contrib module uses <code>current-user</code> which would cause conflicts if ECA were to use the same, ECA should use underscore generally.</p> <p>This would break existing models, that used a token with the old name. But the ECA update command could resolve this automatically, or maybe even an update hook in this case.</p>
issue