public function PhpMarkdownExtra::setConfiguration in Markdown 8.2
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides PhpMarkdown::setConfiguration
File
- src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php, line 221
Class
- PhpMarkdownExtra
- Support for PHP Markdown Extra by Michel Fortin.
Namespace
Drupal\markdown\Plugin\Markdown\PhpMarkdownCode
public function setConfiguration(array $configuration) {
// 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 parent::setConfiguration($configuration);
}