You are here

public function BaseExtension::getConfiguration in Markdown 8.2

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides InstallablePluginBase::getConfiguration

1 call to BaseExtension::getConfiguration()
ExternalLinkExtension::getConfiguration in src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php
Gets this plugin's configuration.
1 method overrides BaseExtension::getConfiguration()
ExternalLinkExtension::getConfiguration in src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php
Gets this plugin's configuration.

File

src/Plugin/Markdown/BaseExtension.php, line 70

Class

BaseExtension
Base class for markdown extensions.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function getConfiguration() {
  $configuration = parent::getConfiguration();

  // Only provide settings if extension is enabled.
  if ($this instanceof SettingsInterface && !$this
    ->isEnabled()) {
    $configuration['settings'] = [];
  }
  return $configuration;
}