function ProjectCoreCompatibility::isCoreCompatible
Same name in other branches
- 9 core/modules/update/src/ProjectCoreCompatibility.php \Drupal\update\ProjectCoreCompatibility::isCoreCompatible()
- 8.9.x core/modules/update/src/ProjectCoreCompatibility.php \Drupal\update\ProjectCoreCompatibility::isCoreCompatible()
- 10 core/modules/update/src/ProjectCoreCompatibility.php \Drupal\update\ProjectCoreCompatibility::isCoreCompatible()
Determines if a release is compatible with the currently installed core.
Parameters
string $core_compatibility_constraint: A semantic version constraint.
Return value
bool TRUE if the given constraint is satisfied by the currently installed version of Drupal core, otherwise FALSE.
1 call to ProjectCoreCompatibility::isCoreCompatible()
- ProjectCoreCompatibility::setReleaseMessage in core/
modules/ update/ src/ ProjectCoreCompatibility.php - Sets core compatibility messages for project releases.
File
-
core/
modules/ update/ src/ ProjectCoreCompatibility.php, line 171
Class
- ProjectCoreCompatibility
- Utility class to set core compatibility messages for project releases.
Namespace
Drupal\updateCode
protected function isCoreCompatible($core_compatibility_constraint) {
try {
return Semver::satisfies($this->existingCoreVersion, $core_compatibility_constraint);
} catch (\Exception) {
return FALSE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.