Field Widget Action for llm_summary Automator on text_textarea_with_summary widget

Created on 8 July 2025, 8 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 issue implements the Field Widget Action plugin for the **Text with Summary** field using the **Textarea with Summary widget** (`text_textarea_with_summary`) and the `llm_summary` AI Automator. This allows automatic generation of summary text (teasers, intros) based on the main body content.

Proposed resolution

  • In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.
  • Name the plugin file LlmSummaryTextareaWithSummary.php.
  • Use the FieldWidgetAction attribute and connect it to:
    • field_types: text_with_summary
    • widget_types: text_textarea_with_summary
  • Set the formElementProperty to summary and configure aiAutomatorsAjax to populate the summary text.
  • Manually test that the Automator correctly generates the summary text from body content, and attach a video of this working to the issue (or request a reviewer to do so).
  • (optional) Add a kernel test to validate the AJAX response.
  • (optional) Add a functional JavaScript test to verify the UI integration.
Feature request
Status

Active

Version

1.2

Component

AI Automators

Created by

🇮🇳India anjaliprasannan

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