Replace tokens in eca_workflow_transition revision_log
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3512301. --> Reported by: [mparker17](https://www.drupal.org/user/536298) Related to !476 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In <code>\Drupal\eca_content\Plugin\Action\SetNewRevision::execute()</code>, we allow administrators to use tokens when setting the node's revision log message...</p> <pre>$log = $this-&gt;tokenService-&gt;replace($this-&gt;configuration['revision_log']);<br>if ($log instanceof DataTransferObject) {<br>&nbsp; $log = $log-&gt;getString();<br>}<br>if ($log) {<br>&nbsp; $entity-&gt;setRevisionLogMessage($log);<br>}</pre><p>However, we don't do that in <code>\Drupal\eca_workflow\Plugin\Action\WorkflowTransition::execute()</code>...</p> <pre>$entity-&gt;setRevisionLogMessage($this-&gt;configuration['revision_log']);</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Replace tokens in the revision_log message in <code>\Drupal\eca_workflow\Plugin\Action\WorkflowTransition::execute()</code></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li><del>Write a patch</del></li> <li><del>Review and feedback</del></li> <li><del>RTBC and feedback</del></li> <li><del>Commit to 2.1.x</del></li> <li>Release</li> </ol> <h3 id="summary-ui-changes">User interface changes</h3> <p>Add <code>'#eca_token_replacement' =&gt; TRUE,</code> to the form field <code>\Drupal\eca_workflow\Plugin\Action\WorkflowTransition::buildConfigurationForm()</code> so that the UI states that "This field supports tokens."</p> <h3 id="summary-api-changes">API changes</h3> <p>None.</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None.</p>
issue