getSecurityCoverageUntilVersion example

$existing_release_version = ExtensionVersion::createFromVersionString($this->existingVersion);

    // Check if the installed version has a specific end date defined.     $version_suffix = $existing_release_version->getMajorVersion() . '_' . $this->getSemanticMinorVersion($this->existingVersion);
    if (defined("self::SECURITY_COVERAGE_END_DATE_$version_suffix")) {
      $info['security_coverage_end_date'] = constant("self::SECURITY_COVERAGE_END_DATE_$version_suffix");
      $info['security_coverage_ending_warn_date'] =
        defined("self::SECURITY_COVERAGE_ENDING_WARN_DATE_$version_suffix")
          ? constant("self::SECURITY_COVERAGE_ENDING_WARN_DATE_$version_suffix")
          : NULL;
    }
    elseif ($security_coverage_until_version = $this->getSecurityCoverageUntilVersion()) {
      $info['security_coverage_end_version'] = $security_coverage_until_version;
      $info['additional_minors_coverage'] = $this->getAdditionalSecurityCoveredMinors($security_coverage_until_version);
    }
    return $info;
  }

  /** * Gets the release the current minor will receive security coverage until. * * For the sake of example, assume that the currently installed version of * Drupal is 8.7.11 and that static::CORE_MINORS_WITH_SECURITY_COVERAGE is 2. * When Drupal 8.9.0 is released, the supported minor versions will be 8.8 * and 8.9. At that point, Drupal 8.7 will no longer have security coverage. * Therefore, this function would return "8.9.0". * * @todo In https://www.drupal.org/node/2998285 determine how we will know * what the final minor release of a particular major version will be. This * method should not return a version beyond that minor. * * @return string|null * The version the existing version will receive security coverage until or * NULL if this cannot be determined. */
Home | Imprint | This part of the site doesn't use cookies.