You are here

public function InstallableLibrary::isAlpha in Markdown 8.2

Indicates whether this is an alpha 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

File

src/Annotation/InstallableLibrary.php, line 343

Class

InstallableLibrary

Namespace

Drupal\markdown\Annotation

Code

public function isAlpha($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');
}