You are here

public function InstallableLibrary::isDev 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

3 calls to InstallableLibrary::isDev()
ComposerPackage::getVersionUrl in src/Annotation/ComposerPackage.php
Retrieves the version as a URL.
InstallableLibrary::getStatus in src/Annotation/InstallableLibrary.php
Retrieves the current status of the library.
PeclExtension::getVersionUrl in src/Annotation/PeclExtension.php
Retrieves the version as a URL.

File

src/Annotation/InstallableLibrary.php, line 360

Class

InstallableLibrary

Namespace

Drupal\markdown\Annotation

Code

public function isDev($version = NULL) {
  if (!isset($version)) {
    $version = $this->version;
  }
  return $version && Semver::satisfies($version, '@dev') && !Semver::satisfies($version, '@alpha') && !Semver::satisfies($version, '@beta') && !Semver::satisfies($version, '@RC') && !Semver::satisfies($version, '@stable');
}