public static function PeclCmark::installed in Markdown 3.0.x
Indicates whether the parser is installed.
Return value
bool
Overrides BaseParser::installed
1 call to PeclCmark::installed()
- PeclCmark::version in src/
Plugin/ Markdown/ PeclCmark.php - Retrieves the version of the installed parser.
File
- src/
Plugin/ Markdown/ PeclCmark.php, line 22
Class
- PeclCmark
- Plugin annotation @MarkdownParser( id = "pecl/cmark", label = @Translation("PECL cmark/libcmark"), url = "https://pecl.php.net/package/cmark", )
Namespace
Drupal\markdown\Plugin\MarkdownCode
public static function installed() : bool {
return class_exists('\\CommonMark\\Parser');
}