Create 'ListInteger' FieldWidgetAction for AiAutomatorType LlmListInteger

Created on 9 July 2025, 5 days ago

Problem/Motivation

The Field Widget Action module is merged into 1.2.x, however we need to start adding Automators plugins to it. The issue Parent Issue: Create Field Widget Actions plugins for Automators. Active is a parent issue for all the implementations of the Automators plugins. Read more in the parent issue.

This is the implementation of the Field Widget Action automator_list_integer for the AI Automator Type llm_list_integer.

Proposed resolution

  • In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.
  • Name it ListInteger.php
  • Use the FieldWidgetAction attribute and connect it to the correct widget_types and field_types
  • 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.
  • Manually test that its working and record a video of it working and upload to the feature (could be done by a reviewer).
  • (optional, can be removed) Write at least a kernel test of the ajax function
  • (optional, can be removed) Even better Function Javascript tests, but that is optional.
📌 Task
Status

Active

Version

1.2

Component

AI Core module

Created by

🇨🇦Canada bisonbleu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024