public static function SmartPunctuationExtension::defaultSettings in Markdown 8.2
Provides the default settings for the plugin.
Parameters
\Drupal\markdown\Annotation\InstallablePlugin $pluginDefinition: The plugin definition.
Return value
array The default settings.
Overrides SettingsTrait::defaultSettings
File
- src/
Plugin/ Markdown/ CommonMark/ Extension/ SmartPunctuationExtension.php, line 57
Class
- SmartPunctuationExtension
- Smart Punctuation extension.
Namespace
Drupal\markdown\Plugin\Markdown\CommonMark\ExtensionCode
public static function defaultSettings($pluginDefinition) {
/* @var \Drupal\markdown\Annotation\InstallablePlugin $pluginDefinition */
// Older versions of the deprecated extension didn't have settings.
if (!static::featureExists('settings')) {
return [];
}
return [
'double_quote_opener' => '“',
'double_quote_closer' => '”',
'single_quote_opener' => '‘',
'single_quote_closer' => '’',
];
}