Problem/Motivation
When I try to arrange text formats and editors settings I get the following error.
Symfony\Component\Validator\Exception\LogicException: The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated. in Drupal\Core\Config\Plugin\Validation\Constraint\LangcodeRequiredIfTranslatableValuesConstraintValidator->validate() (line 26 of var/www/html/mysite/web/core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php).
This was caused by #3427564: Require `langcode: …` only for simple config that contains translatable values.
Steps to reproduce
On Drupal 10.3, edit and then save a text format that uses CKEditor.
Proposed resolution
Convert the LogicException
to a E_USER_DEPRECATED
error. This is a quick fix for sites broken by Drupal 10.3. Another fix for 11.x can be done in a follow-up.
Remaining tasks
Implement.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
Text formats could not be saved due to config translation validation new in Drupal 10.3. The LogicException
has been replaced with a E_USER_DEPRECATED
error.