Event subscriber should add the entity to tokens
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3275030. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
>>>
<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 state machine events as well. This is relevant for subsequent actions so that they can refer to the entity that gets its status changed. Token name should be <code>entity</code>, just like for content entity events.</p>
> Related issue: [Issue #3238206](https://www.drupal.org/node/3238206)
issue