You are here

function hackedProject::isDevVersion in Hacked! 8.2

Determines if the project is a development version or has an explicit release.

Return value

boolean TRUE if the project is a dev release; FALSE otherwise.

1 call to hackedProject::isDevVersion()
hackedProject::__construct in src/hackedProject.php
Constructor.

File

src/hackedProject.php, line 123

Class

hackedProject
Encapsulates a Hacked! project.

Namespace

Drupal\hacked

Code

function isDevVersion() {

  // Grab the version string.
  $version = $this->existing_version;

  // Assume we have a dev version if the string ends with "-dev".
  return strlen($version) < 4 || substr_compare($version, '-dev', -4, 4) !== 0 ? FALSE : TRUE;
}