Add Field Widget Action for llm_link Automator on link_default 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 **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.

Proposed resolution

  • In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.
  • Name the plugin file LlmLinkLinkDefault.php.
  • Use the FieldWidgetAction attribute and connect it to:
    • field_types: link
    • widget_types: link_default
  • Set the formElementProperty to uri and configure the aiAutomatorsAjax to use populateAutomatorValues().
  • No special clearEntity handling is required for this field type.
  • 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).
  • (optional) Add a kernel test to validate the AJAX response.
  • (optional) Add a functional JavaScript test to verify the field interaction and Automator output.
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