Allow link in allowedTypes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3542552. --> Reported by: [merilainen](https://www.drupal.org/user/304437) Related to !840 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I wanted to create new entities with the "LLM: Entity reference" AI Automator type, and it works fine. Then I realized that if I can pass the link value to the entity to be created, that entity can also have automator configured which will get the provided link value and fetch the data for that new entity. So when I have for example a product which references 10 projects, I can easily create a single product which will pass 10 links to 10 new project entities which are also created automatically, with a single entity save in Drupal UI!<br> But then I realized that link is not in the allowed types of the EntityReference plugin.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Allow link in the allowedTypes of the EntityReference plugin.<br> Add a condition to GeneralHelper class so that it's not always assuming to have the <code>allowed_formats</code> setting for every field.</p>
issue