You are here

public function BaseExtension::isEnabled in Markdown 3.0.x

Indicates whether the extension is being used.

Return value

bool TRUE or FALSE

Overrides MarkdownExtensionInterface::isEnabled

File

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

Class

BaseExtension
Base class for markdown extensions.

Namespace

Drupal\markdown\Plugin\Markdown\Extension

Code

public function isEnabled() {
  return !!$this
    ->getSetting('enabled');
}