Problem/Motivation

Related to https://www.drupal.org/project/paragraphs/issues/3012053, we found out that settingsSummary() in ParagrapsStylePlugin returns an imploded string with the style plugins.

Proposed resolution

We need to return an array with rendered strings in order to properly display the settings in the paragraphs summary.

This should also be done for ParagraphsGridLayoutPlugin. (not sure about ParagraphsLockablePlugin?)

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

sasanikolic created an issue. See original summary.

sasanikolic’s picture

Status: Active » Needs review
StatusFileSize
new1.55 KB

Here is the patch.

miro_dietiker’s picture

Status: Needs review » Needs work

As discussed, we should figure out if we can pass up render arrays and let the parent renderer do its recursion job. We should avoid direct render() calls.

johnchque’s picture

Status: Needs work » Needs review
StatusFileSize
new4.67 KB
new3.93 KB

Updating the structure with the latest changes in Paragraphs.

Status: Needs review » Needs work

The last submitted patch, 5: 3029996-return-arrays-in-settings-summary-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

johnchque’s picture

Status: Needs work » Needs review
StatusFileSize
new4.67 KB
new508 bytes

We need to do this update after the last patch.

Status: Needs review » Needs work

The last submitted patch, 7: 3029996-return-arrays-in-settings-summary-7.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

johnchque’s picture

Status: Needs work » Needs review
StatusFileSize
new10.31 KB
new5.01 KB

This should fix all tests.

  • Berdir committed af6632d on 8.x-1.x authored by yongt9412
    Issue #3029996 by yongt9412, sasanikolic: Return arrays in settings...
berdir’s picture

Status: Needs review » Fixed

Great, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.