Skip to content
Snippets Groups Projects

Resolve #3365517 "Check for core"

@@ -53,8 +53,13 @@ final class ExtensionMetadataDeprecationAnalyzer {
if (!isset($info['core_version_requirement'])) {
$deprecations[] = new DeprecationMessage("Add core_version_requirement to designate which Drupal versions is the extension compatible with. See https://drupal.org/node/3070687.", $error_path, 0);
}
elseif (!ProjectCollector::isCompatibleWithNextMajorDrupal($info['core_version_requirement'])) {
$deprecations[] = new DeprecationMessage("Value of core_version_requirement: {$info['core_version_requirement']} is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.", $error_path, 0);
else {
if (!ProjectCollector::isCompatibleWithNextMajorDrupal($info['core_version_requirement'])) {
$deprecations[] = new DeprecationMessage("Value of core_version_requirement: {$info['core_version_requirement']} is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.", $error_path, 0);
}
if (($info['core_version_requirement'] != '^8 || ^9') && isset($info['core'])) {
$deprecations[] = new DeprecationMessage("The core key is not supported anymore. It must be removed to avoid an exception. See https://drupal.org/node/3070687.", $error_path, 0);
}
}
// @todo
Loading