You are here

public function SettingsTrait::getSettings in Markdown 8.2

6 calls to SettingsTrait::getSettings()
CommonMark::converter in src/Plugin/Markdown/CommonMark/CommonMark.php
Retrieves a CommonMark converter instance.
CommonMark::getEnvironment in src/Plugin/Markdown/CommonMark/CommonMark.php
Retrieves a CommonMark environment, creating it if necessary.
ExternalLinkExtension::getSettings in src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php
Retrieves the current settings.
Parsedown::getParsedown in src/Plugin/Markdown/Parsedown/Parsedown.php
Retrieves the Parsedown instance.
PhpMarkdown::getPhpMarkdown in src/Plugin/Markdown/PhpMarkdown/PhpMarkdown.php
Retrieves the PHP Markdown parser.

... See full list

File

src/Traits/SettingsTrait.php, line 111

Class

SettingsTrait
Trait for installable plugins that implement settings.

Namespace

Drupal\markdown\Traits

Code

public function getSettings($runtime = FALSE, $sorted = TRUE) {
  $settings = $this
    ->config()
    ->get('settings') ?: [];

  // Sort settings (in case configuration was provided by form values).
  if ($sorted && $settings) {
    SortArray::recursiveKeySort($settings);
  }
  return $settings;
}