public function InstallableLibrary::isPrerelease in Markdown 8.2
Indicates whether this is any prerelease version.
Parameters
string $version: A specific version to test. If not specified, it will default to the currently installed version, if any.
Return value
bool TRUE or FALSE
1 call to InstallableLibrary::isPrerelease()
- InstallableLibrary::getStatus in src/Annotation/ InstallableLibrary.php 
- Retrieves the current status of the library.
File
- src/Annotation/ InstallableLibrary.php, line 411 
Class
Namespace
Drupal\markdown\AnnotationCode
public function isPrerelease($version = NULL) {
  if (!isset($version)) {
    $version = $this->version;
  }
  return $version && (Semver::satisfies($version, '@alpha') || Semver::satisfies($version, '@beta') || Semver::satisfies($version, '@RC')) && !Semver::satisfies($version, '@stable');
}