public function BaseParser::getConfiguration in Markdown 8.2
Gets this plugin's configuration.
Return value
array An array of this plugin's configuration.
Overrides InstallablePluginBase::getConfiguration
2 calls to BaseParser::getConfiguration()
- BaseExtensibleParser::getConfiguration in src/
Plugin/ Markdown/ BaseExtensibleParser.php - Gets this plugin's configuration.
- PhpMarkdown::getConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdown.php - Gets this plugin's configuration.
2 methods override BaseParser::getConfiguration()
- BaseExtensibleParser::getConfiguration in src/
Plugin/ Markdown/ BaseExtensibleParser.php - Gets this plugin's configuration.
- PhpMarkdown::getConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdown.php - Gets this plugin's configuration.
File
- src/
Plugin/ Markdown/ BaseParser.php, line 133
Class
- BaseParser
- Base class form Markdown Parser instances.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function getConfiguration() {
$configuration = parent::getConfiguration();
$configuration['render_strategy'] = [
'type' => $this
->getRenderStrategy(),
'custom_allowed_html' => $this
->getCustomAllowedHtml(),
'plugins' => $this
->getAllowedHtmlPlugins(),
];
ksort($configuration['render_strategy']['plugins']);
return $configuration;
}