User submodule event subscriber should add the account entity to tokens
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3275027. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
Related to !127
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The content entity event subscriber adds the event's content entity to the token stack. We should do the same for user events (e.g. login, logout, cancel, etc.) as well. This is particularly relevant for the logout event, where the subsequent actions can not rely on the current user on the token system, they need to know which user account just got logged out. Suggesting <code>account</code> as the default token name for that.</p>
> Related issue: [Issue #3238206](https://www.drupal.org/node/3238206)
issue