Add Field Widget Action for llm_link Automator on link_default widget
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3534640. -->
Reported by: [anjaliprasannan](https://www.drupal.org/user/3637917)
Related to !721
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The Field Widget Action module is merged into 1.2.x, however we need to start adding Automators plugins to it. The parent issue #3534445: Parent Issue: Create Field Widget Actions plugins for Automators. is a parent issue for all the implementations of the Automators plugins. Read more in the parent issue.</p>
<p>This issue implements the Field Widget Action plugin for the **Link** field using the **Default link widget** (`link_default`) and the `llm_link` AI Automator. This will allow automatic suggestion of URLs (and optionally titles) using LLMs based on surrounding content.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>In the <code>AI Automators</code> module, create a new Field Widget Action plugin under <code>src/Plugin/FieldWidgetAction</code>.</li>
<li>Name the plugin file <code>LlmLinkLinkDefault.php</code>.</li>
<li>Use the <code>FieldWidgetAction</code> attribute and connect it to:
<ul>
<li><code>field_types</code>: <code>link</code></li>
<li><code>widget_types</code>: <code>link_default</code></li>
</ul>
</li>
<li>Set the <code>formElementProperty</code> to <code>uri</code> and configure the <code>aiAutomatorsAjax</code> to use <code>populateAutomatorValues()</code>.</li>
<li>No special <code>clearEntity</code> handling is required for this field type.</li>
<li>Manually test that the Automator correctly fills the link field with a valid value (e.g., a URL suggestion), and attach a video of this working to the issue (or request a reviewer to do so).</li>
<li>(optional) Add a kernel test to validate the AJAX response.</li>
<li>(optional) Add a functional JavaScript test to verify the field interaction and Automator output.</li>
</ul>
> Related issue: [Issue #3534445](https://www.drupal.org/node/3534445)
issue