- Issue created by @orakili
- Status changed to Needs review
over 1 year ago 6:24am 1 March 2023 - π―π΅Japan orakili
As suggested in the description of https://www.drupal.org/project/paragraphs_viewmode/issues/2971172 π Does not work with Configuration Translations Fixed , it may be more appropriate to alter the configuration schema to use
string
instead oftext
so that the display mode IDs are not translated or mark those fields as explicitly non translatable withtranslatable: false
.Here's the quote from the schema cheat sheet ( https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-... β ):
The label, plural_label, date_format and text types are defined as translatable: true.
The attached patch changes the schema (just needs a cache clear to take effect) and reverts the main change from https://www.drupal.org/project/paragraphs_viewmode/issues/2971172 π Does not work with Configuration Translations Fixed .
Existing sites where the view modes IDs in the config were translated may need to update their config, I'm not sure.
- πΊπΈUnited States K L Dickenson Ann Arbor, Michigan
When I upgraded to D10.0.11 in my local environment (paragraphs_viewmode v1.1.0), I needed to apply the patch from Issue#3345123 π entityViewModeAlter throws an exception in php 8.2 RTBC . I could not use the patched at the same time as they BOTH alter
ParagraphsViewmodeBehavior.php
. (Cross-posted on Issue#3345123.) - π¦πΉAustria jovan1348
I had same problem where i needed both patches, one from #2 and one from https://www.drupal.org/project/paragraphs_viewmode/issues/3345123 π entityViewModeAlter throws an exception in php 8.2 RTBC
i made ONE new patch that is fixing both problems on my side
Cheers :)P.S. i posted on both issues for faster reaserch :)