You are here

protected function Parsedown::getSettingMethod in Markdown 8.2

Retrieves the method used to configure a specific setting.

Parameters

string $name: The name of the setting.

Return value

string|null The method name or NULL if method does not exist.

3 calls to Parsedown::getSettingMethod()
Parsedown::buildConfigurationForm in src/Plugin/Markdown/Parsedown/Parsedown.php
Form constructor.
Parsedown::getParsedown in src/Plugin/Markdown/Parsedown/Parsedown.php
Retrieves the Parsedown instance.
Parsedown::settingExists in src/Plugin/Markdown/Parsedown/Parsedown.php
Flag indicating whether a setting exists.

File

src/Plugin/Markdown/Parsedown/Parsedown.php, line 221

Class

Parsedown
Support for Parsedown by Emanuil Rusev.

Namespace

Drupal\markdown\Plugin\Markdown\Parsedown

Code

protected function getSettingMethod($name) {
  $map = static::settingMethodMap();
  return isset($map[$name]) && method_exists(static::$parsedownClass, $map[$name]) ? $map[$name] : NULL;
}