User submodule event subscriber should add the account entity to tokens

Issue information

From user: jurgenhaas

Related to !127 (merged)

Contribution record

Fork management

Problem/Motivation

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 account as the default token name for that.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information