Issue #3449851: LogicException: The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated
2 unresolved threads
Merge request reports
Activity
23 22 $mapping = $this->context->getObject(); 24 23 assert($mapping instanceof Mapping); 25 24 if ($mapping !== $this->context->getRoot()) { 26 throw new LogicException('The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated.'); 25 // @todo Convert this deprecation to LogicException. changed this line in version 2 of the diff
23 22 $mapping = $this->context->getObject(); 24 23 assert($mapping instanceof Mapping); 25 24 if ($mapping !== $this->context->getRoot()) { 26 throw new LogicException('The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated.'); 25 // @todo Convert this deprecation to LogicException. 26 @trigger_error('Calling the LangcodeRequiredIfTranslatableValues constraint on other than the root object being validated is deprecated in drupal:10.3.0 and removed in drupal:11.0.0. See https://www.drupal.org/project/drupal/issues/3449851', E_USER_DEPRECATED); 26 @trigger_error('Calling the LangcodeRequiredIfTranslatableValues constraint on other than the root object being validated is deprecated in drupal:10.3.0 and removed in drupal:11.0.0. See https://www.drupal.org/project/drupal/issues/3449851', E_USER_DEPRECATED); 26 @trigger_error('Calling the LangcodeRequiredIfTranslatableValues constraint on other than the root object being validated is deprecated in drupal:10.3.0 and will trigger \LogicException in drupal:11.0.0. See https://www.drupal.org/project/drupal/issues/3449851', E_USER_DEPRECATED); Also we need to fix the link here. It needs to point to a change record.
changed this line in version 2 of the diff
added 24 commits
-
9dbd9444...7d0e0674 - 22 commits from branch
project:10.3.x
- d80d3f8a - Issue #3449851: Convert LogicException to E_USER_DEPRECATED in...
- d8dc9aa1 - Improve deprecation message
-
9dbd9444...7d0e0674 - 22 commits from branch
Please register or sign in to reply