You are here

public function BaseExtension::getSetting in Markdown 3.0.x

Retrieves a setting.

Parameters

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

Return value

mixed The settings value or NULL if not set.

Overrides MarkdownExtensionInterface::getSetting

11 calls to BaseExtension::getSetting()
AtAutolinker::alterGuidelines in src/Plugin/Markdown/Extension/AtAutolinker.php
Alters existing guides on how to use the Markdown Parser.
AtAutolinker::parse in src/Plugin/Markdown/Extension/AtAutolinker.php
AtAutolinker::settingsForm in src/Plugin/Markdown/Extension/AtAutolinker.php
Returns the configuration form elements specific to this plugin.
BaseExtension::isEnabled in src/Plugin/Markdown/Extension/BaseExtension.php
Indicates whether the extension is being used.
HashAutolinker::alterGuidelines in src/Plugin/Markdown/Extension/HashAutolinker.php
Alters existing guides on how to use the Markdown Parser.

... See full list

File

src/Plugin/Markdown/Extension/BaseExtension.php, line 112

Class

BaseExtension
Base class for markdown extensions.

Namespace

Drupal\markdown\Plugin\Markdown\Extension

Code

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