Let source plugins inject tokens to pushed content
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3324587. --> Reported by: [baluertl](https://www.drupal.org/user/1086292) Related to !4 !1 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Due to the specification of my client task, I was required to include the name of the CRUD operation (eg. create, update, delete, etc.) in the notification content. To allow all my <code>@ChannelPlugin</code> instances leverage by consuming this piece of information I thought it might be best to introduce an extra <code>[push-object:topic]</code> Token which could be used in the notification templates.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>So here's my initial approach which definitely needs some pairs of more experienced eyes to make it more elegant. This is my very first token definition ever written so please share your suggestions on how to improve it.</p> > Related issue: [Issue #3328626](https://www.drupal.org/node/3328626)
issue