public function LinkRenderer::defaultSettings in Markdown 3.0.x
Retrieves the default settings.
Return value
array The default settings.
Overrides BaseExtension::defaultSettings
File
- src/
Plugin/ Markdown/ Extension/ LinkRenderer.php, line 94
Class
- LinkRenderer
- Plugin annotation @MarkdownExtension( id = "enhanced_links", label = @Translation("Enhanced Links"), installed = TRUE, description = @Translation("Extends CommonMark to provide additional enhancements when rendering links."), parsers =…
Namespace
Drupal\markdown\Plugin\Markdown\ExtensionCode
public function defaultSettings() {
return [
'external_new_window' => TRUE,
'internal_host_whitelist' => \Drupal::request()
->getHost(),
'no_follow' => 'external',
];
}