Create 'Boolean' FieldWidgetAction for AIAutomatorType LlmBoolean

Created on 8 July 2025, 15 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 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.

This is the implementation of the Field Widget Action automator_boolean for the AI Automator Type llm_boolean.

Proposed resolution

  • In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.
  • Name it Boolean.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