public function PhpMarkdownExtra::getConfiguration in Markdown 8.2
Gets this plugin's configuration.
Return value
array An array of this plugin's configuration.
Overrides PhpMarkdown::getConfiguration
File
- src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php, line 205
Class
- PhpMarkdownExtra
- Support for PHP Markdown Extra 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_abbr',
] as $name) {
if (isset($configuration['settings'][$name])) {
$configuration['settings'][$name] = KeyValuePipeConverter::normalize($configuration['settings'][$name]);
}
}
return $configuration;
}