Automatically populating multiple preview link entities

Created on 10 April 2024, 7 months ago
Updated 22 May 2024, 6 months ago

Problem/Motivation

We would like to be able to add a button to a preview link form that will automatically add all the entities given certain conditions.

For example, the LocalGov Drupal Guides module allows you to create a guide consisting of a guide overview and then a number of guide pages. We would like to be able to automatically add all the guide pages to the preview link entity saving content editors time.

Proposed resolution

Add a plugin definition and manager that allows modules to create plugins that defines the entities it applies to, the title of the button, and a method to collect the entities when submitted.

If the button applies to a given entity then a button is added to the entity's preview link form. Clicking on this button automatically populates the preview link entities using the logic defined in the plugin.

Feature request
Status

Needs review

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom stephen-cox

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