public function PhpMarkdown::setConfiguration in Markdown 8.2
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides InstallablePluginBase::setConfiguration
1 call to PhpMarkdown::setConfiguration()
- PhpMarkdownExtra::setConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php - Sets the configuration for this plugin instance.
1 method overrides PhpMarkdown::setConfiguration()
- PhpMarkdownExtra::setConfiguration in src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php - Sets the configuration for this plugin instance.
File
- src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdown.php, line 200
Class
- PhpMarkdown
- Support for PHP Markdown 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_titles',
'predef_urls',
] as $name) {
if (isset($configuration['settings'][$name])) {
$configuration['settings'][$name] = KeyValuePipeConverter::normalize($configuration['settings'][$name]);
}
}
return parent::setConfiguration($configuration);
}