public function Markdown::getParserSetting in Markdown 3.0.x
Retrieves a specific parser 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 parser setting value.
Overrides MarkdownFilterInterface::getParserSetting
File
- src/
Plugin/ Filter/ Markdown.php, line 85
Class
- Markdown
- Provides a filter for Markdown.
Namespace
Drupal\markdown\Plugin\FilterCode
public function getParserSetting($name, $default = NULL) {
$settings = $this
->getParserSettings();
return isset($settings[$name]) ? $settings[$name] : $default;
}