public static function PhpMarkdownExtra::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 PhpMarkdown::defaultSettings
File
- src/
Plugin/ Markdown/ PhpMarkdown/ PhpMarkdownExtra.php, line 43
Class
- PhpMarkdownExtra
- Support for PHP Markdown Extra by Michel Fortin.
Namespace
Drupal\markdown\Plugin\Markdown\PhpMarkdownCode
public static function defaultSettings($pluginDefinition) {
/* @var \Drupal\markdown\Annotation\InstallablePlugin $pluginDefinition */
return [
'code_attr_on_pre' => FALSE,
'code_class_prefix' => '',
'enhanced_ordered_list' => TRUE,
'fn_backlink_class' => 'footnote-backref',
'fn_backlink_html' => '↩︎',
'fn_backlink_label' => '',
'fn_backlink_title' => '',
'fn_id_prefix' => '',
'fn_link_class' => 'footnote-ref',
'fn_link_title' => '',
'hashtag_protection' => FALSE,
'omit_footnotes' => FALSE,
'predef_abbr' => [],
'table_align_class_tmpl' => '',
] + parent::defaultSettings($pluginDefinition);
}