You are here

public static function ScssphpCompiler::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/ScssphpCompiler.php, line 51

Class

ScssphpCompiler
Plugin implementation of the Scss compiler.

Namespace

Drupal\scss_compiler\Plugin\ScssCompiler

Code

public static function getVersion() {
  if (class_exists('ScssPhp\\ScssPhp\\Version')) {
    return Version::VERSION;
  }
  return FALSE;
}