Problem/Motivation

The existing configuration of the Paragraphs module does not support reference changes for paragraphs when translating content. This limitation hinders the flexibility needed for certain use cases where references need to be modified during translations.

Steps to reproduce

Install and enable the Paragraphs module.
Configure the Paragraphs module to enable translations.
Attempt to change references for paragraphs while translating.
Notice that the option to change references is not available.

Proposed resolution

Introduce a new configuration option, allow_reference_changes, to the Paragraphs module settings. This option will allow users to enable or disable reference changes for paragraphs during translations

User interface changes

A new checkbox will be added to the Paragraphs settings form to enable or disable reference changes for paragraphs during translations.

API changes

The following methods in the Paragraphs module will be updated to respect the new configuration setting:
InlineParagraphsWidget::formElement
InlineParagraphsWidget::addMore
ParagraphsWidget::allowReferenceChanges

Data model changes

The paragraphs.settings configuration schema will be updated to include the new allow_reference_changes option.

CommentFileSizeAuthor
#2 3463946.patch4.1 KBakshaykamble

Issue fork paragraphs-3463946

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

akshaykamble created an issue. See original summary.

akshaykamble’s picture

Status: Active » Needs review
StatusFileSize
new4.1 KB

Created a patch for required changes.

smustgrave’s picture

Status: Needs review » Needs work

All changes should be done in an MR not a patch, so the test can run

Permission change most likely requires test coverage.

jenlampton’s picture

I believe this issue is a duplicate of https://www.drupal.org/project/paragraphs/issues/3302876, but since this one has a patch and that one does not I have closed the older issue as the duplicate.

yashaswi18 made their first commit to this issue’s fork.

yashaswi18’s picture

Status: Needs work » Needs review

Converted the above patch into a merge request for easier review as suggested in #3.