Issue #3402168 by Wim Leers, alexpott, Berdir, bircher, borisson_,...
Issue #3402168 by Wim Leers, alexpott, Berdir, bircher, borisson_, effulgentsia: Follow-up for #3361534: Config validation errors can still occur for contrib modules, disrupting contrib
(cherry picked from commit c8b39f01)
@trigger_error(sprintf("The '%s' configuration contains validation errors. Invalid config is deprecated in drupal:10.2.0 and will be required to be valid in drupal:11.0.0. The following validation errors were found:\n\t\t- %s\nSee https://www.drupal.org/node/3362879",
$config_name,
implode("\n\t\t- ",$validation_errors)
),E_USER_DEPRECATED);
}
else{
// @todo Decide in https://www.drupal.org/project/drupal/issues/3395099 when/how to trigger deprecation errors or even failures for contrib modules.
$errors=array_merge($errors,$validation_errors);
}
if(empty($errors)){
returnTRUE;
}
@@ -177,17 +173,6 @@ protected static function isViolationForIgnoredPropertyPath(ConstraintViolation
returnFALSE;
}
/**
* Whether the current test is for a contrib module.