Problem/Motivation
During review, @Gábor Hojtsy raised that EntityResource::checkFieldTranslatability() only consults the field definition, and that a field the code declares translatable may not be configured as translatable on the site. The concern: could the translation API save translated values into a field that the site configuration marks untranslatable?
Investigation shows the write is already rejected in every case, but the behavior was not obvious from the single method and one case had no test coverage.
Steps to reproduce
Proposed resolution
No behavior change is required; the enforcement already reads site configuration. Add regression coverage for the previously untested case: a base field that is translatable in code but marked untranslatable by a `BaseFieldOverride`. This also guards against a regression where the check might be rewritten to read base (rather than bundle) field definitions, which would miss overrides.
Issue fork jsonapi_multilingual-3610902
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 #3
lauriiiComment #5
lauriii