You are here

public function HashAutolinker::defaultSettings in Markdown 3.0.x

Retrieves the default settings.

Return value

array The default settings.

Overrides BaseExtension::defaultSettings

File

src/Plugin/Markdown/Extension/HashAutolinker.php, line 66

Class

HashAutolinker
Plugin annotation @MarkdownExtension( id = "hash_autolinker", label = @Translation("# Autolinker"), installed = TRUE, description = @Translation("Automatically link commonly used references that come after a hash character (#) without having…

Namespace

Drupal\markdown\Plugin\Markdown\Extension

Code

public function defaultSettings() {
  return [
    'type' => 'node',
    'node_title' => TRUE,
    'url' => 'https://www.drupal.org/node/[text]',
    'url_title' => TRUE,
  ];
}