You are here

public static function LessphpCompiler::getVersion in SCSS/Less Compiler 8

Returns compiler version.

Return value

string|bool Compiler version or FALSE if version not defined.

Overrides ScssCompilerPluginInterface::getVersion

File

src/Plugin/ScssCompiler/LessphpCompiler.php, line 50

Class

LessphpCompiler
Plugin implementation of the Less compiler.

Namespace

Drupal\scss_compiler\Plugin\ScssCompiler

Code

public static function getVersion() {
  if (class_exists('Less_Version')) {
    return \Less_Version::version;
  }
  return FALSE;
}