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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3463946.patch | 4.1 KB | akshaykamble |
Issue fork paragraphs-3463946
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
Comment #2
akshaykamble commentedCreated a patch for required changes.
Comment #3
smustgrave commentedAll changes should be done in an MR not a patch, so the test can run
Permission change most likely requires test coverage.
Comment #4
jenlamptonI 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.
Comment #7
yashaswi18 commentedConverted the above patch into a merge request for easier review as suggested in #3.