ProjectSecurityData
final class ProjectSecurityData (View source)
| internal | This class implements logic to determine security coverage for Drupal core according to Drupal core security policy. It should not be called directly. |
Calculates a project's security coverage information.
Constants
| CORE_MINORS_WITH_SECURITY_COVERAGE |
The number of minor versions of Drupal core that receive security coverage. For example, if this value is 2 and the existing version is 9.0.1, the 9.0.x branch will receive security coverage until the release of version 9.2.0. |
| SECURITY_COVERAGE_END_DATE_8_8 |
Define constants for versions with security coverage end dates. Two types of constants are supported:
|
| SECURITY_COVERAGE_ENDING_WARN_DATE_8_8 |
|
| SECURITY_COVERAGE_END_DATE_8_9 |
|
Properties
| protected string|null | $existingVersion | The existing (currently installed) version of the project. |
|
| protected array | $releases | Releases as returned by update_get_available(). |
Methods
Creates a ProjectSecurityData object from project data and releases.
Gets the security coverage information for a project.
Details
static ProjectSecurityData
createFromProjectDataAndReleases(array $project_data, array $releases)
Creates a ProjectSecurityData object from project data and releases.
array
getCoverageInfo()
Gets the security coverage information for a project.
Currently only Drupal core is supported.