You are here

public function Markdown::getSetting in Markdown 3.0.x

Retrieves a specific setting.

Parameters

string $name: The name of the setting to retrieve.

mixed $default: Optional. The default value to return if not set.

Return value

mixed The setting value.

Overrides MarkdownFilterInterface::getSetting

2 calls to Markdown::getSetting()
Markdown::getParser in src/Plugin/Filter/Markdown.php
Retrieves the MarkdownParser plugin for this filter.
Markdown::getParserSettings in src/Plugin/Filter/Markdown.php
Retrieves all parser specific settings.

File

src/Plugin/Filter/Markdown.php, line 60

Class

Markdown
Provides a filter for Markdown.

Namespace

Drupal\markdown\Plugin\Filter

Code

public function getSetting($name, $default = NULL) {
  $settings = $this
    ->getSettings();
  return isset($settings[$name]) ? $settings[$name] : $default;
}