public function PhpMarkdown::getConfiguration in Markdown 8.2
Gets this plugin's configuration.
Return value
array An array of this plugin's configuration.
Overrides BaseParser::getConfiguration
1 call to PhpMarkdown::getConfiguration()
- PhpMarkdownExtra::getConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php - Gets this plugin's configuration.
1 method overrides PhpMarkdown::getConfiguration()
- PhpMarkdownExtra::getConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php - Gets this plugin's configuration.
File
- src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdown.php, line 156
Class
- PhpMarkdown
- Support for PHP Markdown by Michel Fortin.
Namespace
Drupal\markdown\Plugin\Markdown\PhpMarkdownCode
public function getConfiguration() {
$configuration = parent::getConfiguration();
// Normalize settings from a key|value string into an associative array.
foreach ([
'predef_titles',
'predef_urls',
] as $name) {
if (isset($configuration['settings'][$name])) {
$configuration['settings'][$name] = KeyValuePipeConverter::normalize($configuration['settings'][$name]);
}
}
return $configuration;
}