Create 'ListInteger' FieldWidgetAction for AiAutomatorType LlmListInteger
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535061. -->
Reported by: [bisonbleu](https://www.drupal.org/user/549974)
Related to !748
>>>
<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 issue <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/ai/issues/3534445" title="Status: Active">#3534445: Parent Issue: Create Field Widget Actions plugins for Automators.</a></span> is a parent issue for all the implementations of the Automators plugins. Read more in the parent issue.</p>
<p>This is the implementation of the Field Widget Action <code>automator_list_integer</code> for the AI Automator Type <code>llm_list_integer</code>.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.</li>
<li>Name it <strong>ListInteger.php</strong></li>
<li>Use the FieldWidgetAction attribute and connect it to the correct widget_types and field_types</li>
<li>At minimum, set up the first part of the aiAutomatorsAjax, where it picks the correct components, and if it should clearEntity and the formElementProperty. clearEntity, means that it removes the entities, to recreate them for the Automators, this should not be set if its a subfield.</li>
<li>Manually test that its working and record a video of it working and upload to the feature (could be done by a reviewer).</li>
<li>(optional, can be removed) Write at least a kernel test of the ajax function</li>
<li>(optional, can be removed) Even better Function Javascript tests, but that is optional.</li>
</ul>
> Related issue: [Issue #3534827](https://www.drupal.org/node/3534827)
> Related issue: [Issue #3535766](https://www.drupal.org/node/3535766)
> Related issue: [Issue #3534445](https://www.drupal.org/node/3534445)
issue