ProjectRelease
final class ProjectRelease (View source)
Provides a project release value object.
Methods
Creates a ProjectRelease instance from an array.
Gets the project version.
Gets the release date if set.
Determines if the release is a security release.
Determines if the release is unsupported.
Determines if the release is insecure.
Determines if the release is published.
Determines whether release is compatible the site's version of Drupal core.
Gets the core compatibility message for the site's version of Drupal core.
Gets the download URL of the release.
Gets the URL of the release.
Details
static ProjectRelease
createFromArray(array $release_data)
Creates a ProjectRelease instance from an array.
string
getVersion()
Gets the project version.
int|null
getDate()
Gets the release date if set.
bool
isSecurityRelease()
Determines if the release is a security release.
bool
isUnsupported()
Determines if the release is unsupported.
bool
isInsecure()
Determines if the release is insecure.
bool
isPublished()
Determines if the release is published.
bool|null
isCoreCompatible()
Determines whether release is compatible the site's version of Drupal core.
string|null
getCoreCompatibilityMessage()
Gets the core compatibility message for the site's version of Drupal core.
string|null
getDownloadUrl()
Gets the download URL of the release.
string
getReleaseUrl()
Gets the URL of the release.