You are here

public static function PhpMarkdown::version in Markdown 3.0.x

Retrieves the version of the installed parser.

Return value

string|null

Overrides BaseParser::version

File

src/Plugin/Markdown/PhpMarkdown.php, line 43

Class

PhpMarkdown
Plugin annotation @MarkdownParser( id = "michelf/php-markdown", label = @Translation("PHP Markdown"), url = "https://michelf.ca/projects/php-markdown", )

Namespace

Drupal\markdown\Plugin\Markdown

Code

public static function version() : string {
  if (static::installed()) {
    $class = static::$parserClass;
    return $class::MARKDOWNLIB_VERSION;
  }
}