ECA Render: use token for render link fails
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3415579. --> Reported by: [jurgenhaas](https://www.drupal.org/user/168924) Related to !419 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When trying to store a link render array from the <code>\Drupal\eca_render\Plugin\Action\Link</code> action plugin, DataTransferObject is throwing an exception because the render array contains a URL object which is not allowed in line 297 of <code>\Drupal\eca\Plugin\DataType\DataTransferObject::setValue</code> where it throws this exception:</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br></span><span style="color: #007700">throw new \</span><span style="color: #0000BB">InvalidArgumentException</span><span style="color: #007700">(</span><span style="color: #DD0000">"Invalid values given. Values must be of scalar types, entities or typed data objects."</span><span style="color: #007700">);<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> <p>Not sure, if other render arrays may have similar issues. So far, I haven't found any.</p>
issue