Pass confirm form field values to replicate api

Created on 15 April 2024, 2 months ago

Problem/Motivation

Use the proposed patch to the replicate module to allow parameters to be passed to that module's events
Issue: [ https://www.drupal.org/project/replicate/issues/30748722] β†’ - Allow passing arbitrary properties to the Replicate events
Patch: https://www.drupal.org/files/issues/2024-01-11/3074872-6.patch β†’

Send the confirm form field values to the replicate api so that they are available to the events.

This will allow other modules to have a hook_form_alter to add fields and event subscribers to customise replicate based upon
those values.

Steps to reproduce

N/A

Proposed resolution

Update ReplicateConfirmForm to create a parameters array keyed by the field names with values of those fields. Pass that array to the replicator service replicateEntity method as povided by the above patch to replicate.
I have attached a proposed patch that works for me on replicate UI 8.x-1.1 with replicate 8.x-1.2 with the referenced patch applied.

Remaining tasks

Review and possibly add/modify tests

User interface changes

None

API changes

Pass field names and values to replicate API.

Data model changes

None

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Rory Downes

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

Comments & Activities

Production build 0.69.0 2024