You are here

public function InstallableLibrary::isStable in Markdown 8.2

Indicates whether this is a stable 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 428

Class

InstallableLibrary

Namespace

Drupal\markdown\Annotation

Code

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