protected function ProjectCoreCompatibility::isCoreCompatible in Drupal 10
Same name and namespace in other branches
- 8 core/modules/update/src/ProjectCoreCompatibility.php \Drupal\update\ProjectCoreCompatibility::isCoreCompatible()
- 9 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.
File
- core/
modules/ update/ src/ ProjectCoreCompatibility.php, line 160
Class
- ProjectCoreCompatibility
- Utility class to set core compatibility messages for project releases.
Namespace
Drupal\updateCode
protected function isCoreCompatible($core_compatibility_constraint) {
return Semver::satisfies($this->existingCoreVersion, $core_compatibility_constraint);
}