You are here

protected function ProjectCoreCompatibility::isCoreCompatible in Drupal 9

Same name and namespace in other branches
  1. 8 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 160

Class

ProjectCoreCompatibility
Utility class to set core compatibility messages for project releases.

Namespace

Drupal\update

Code

protected function isCoreCompatible($core_compatibility_constraint) {
  return Semver::satisfies($this->existingCoreVersion, $core_compatibility_constraint);
}