Tamper beta2 break condition deriver
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3559237. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The condition deriver only uses tamper plugins that are from one of those categories:</p>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br> </span><span style="color: #007700">protected static array </span><span style="color: #0000BB">$supportedCategories </span><span style="color: #007700">= [<br> </span><span style="color: #DD0000">'Text'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'Date/time'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'Number'</span><span style="color: #007700">,<br> </span><span style="color: #DD0000">'Other'</span><span style="color: #007700">,<br> ];<br></span><span style="color: #0000BB">?></span></span></pre></div>
<p>The tamper plugins no longer have a string as their category but a translatable string, so that we get no matches anymore.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Cast the category to string before comparison.</p>
issue