public function BaseExtension::isBundled in Markdown 8.2
Indicates whether the extension is automatically installed with the parser.
Note: this does not indicate whether the extension is actually being used, just that it is available because it came with the parser.
Return value
bool TRUE or FALSE
Overrides ExtensionInterface::isBundled
File
- src/
Plugin/ Markdown/ BaseExtension.php, line 84
Class
- BaseExtension
- Base class for markdown extensions.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function isBundled() {
if (($parser = $this
->getParser()) && $parser instanceof ExtensibleParserInterface) {
return in_array($this
->getPluginId(), $parser
->getBundledExtensionIds(), TRUE);
}
return FALSE;
}