public function BaseExtensibleParser::extensions in Markdown 8.2
Returns the ordered collection of extension plugin instances.
Return value
\Drupal\markdown\PluginManager\ExtensionCollection|\Drupal\markdown\Plugin\Markdown\ExtensionInterface[] The extension plugin collection.
Overrides ExtensibleParserInterface::extensions
3 calls to BaseExtensibleParser::extensions()
- BaseExtensibleParser::getConfiguration in src/
Plugin/ Markdown/ BaseExtensibleParser.php - Gets this plugin's configuration.
- BaseExtensibleParser::getPluginCollections in src/
Plugin/ Markdown/ BaseExtensibleParser.php - Gets the plugin collections used by this object.
- CommonMark::getEnvironment in src/
Plugin/ Markdown/ CommonMark/ CommonMark.php - Retrieves a CommonMark environment, creating it if necessary.
File
- src/
Plugin/ Markdown/ BaseExtensibleParser.php, line 58
Class
- BaseExtensibleParser
- Base class for extensible markdown parsers.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function extensions() {
if (!isset($this->extensionCollection)) {
$this->extensionCollection = new ExtensionCollection($this
->getContainer()
->get('plugin.manager.markdown.extension'), $this);
}
return $this->extensionCollection;
}