Refactor usage of "handle_multiples" for Encode-plugin
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3439502. -->
Reported by: [lammensj](https://www.drupal.org/user/1939186)
Related to !9
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>@kopeboy encountered an issue (see <a href="https://www.drupal.org/project/tamper/issues/3391096#comment-15541571">https://www.drupal.org/project/tamper/issues/3391096#comment-15541571</a>) when trying to base64-encode an array via a token. This isn't supported, but the Tamper-trait in eca_tamper still provides one because it's relying on the "handle_multiples" annotation-property of the underlying Tamper-plugin. See <a href="https://git.drupalcode.org/project/eca_tamper/-/blob/1.0.x/src/Plugin/TamperTrait.php?ref_type=heads#L135">https://git.drupalcode.org/project/eca_tamper/-/blob/1.0.x/src/Plugin/TamperTrait.php?ref_type=heads#L135</a>.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Use the attached model to replicate the error.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Refactor the usage of "handle_multiples" OR create separate Tamper-Actions for the Encode-plugin (so not via the deriver)</p>
> Related issue: [Issue #3391096](https://www.drupal.org/node/3391096)
issue