- πΊπΈUnited States millerrs
I can also confirm that patch #2 resolves this issue. I tested it with Drupal 10.3.10, PHP 8.3.8, and layout_builder_st alpha3.
How to reproduce:
1. Create a custom block plugin with a setting being an assoc array, with a translatable item inside.
2. Create a schema file for that block and setting.
3. Put the block in the layout builder and translate this nested setting.
4. Other non-translatable settings from the same array will be null on translated page.
This is because of the shallow array merging in the ComponentPluginTranslate, at line 90:
https://git.drupalcode.org/project/layout_builder_st/-/blob/8.x-1.x/src/...
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I can also confirm that patch #2 resolves this issue. I tested it with Drupal 10.3.10, PHP 8.3.8, and layout_builder_st alpha3.