You are here

public function EnabledPluginTrait::isEnabled in Markdown 8.2

1 call to EnabledPluginTrait::isEnabled()
BaseExtension::getConfiguration in src/Plugin/Markdown/BaseExtension.php
Gets this plugin's configuration.

File

src/Traits/EnabledPluginTrait.php, line 22

Class

EnabledPluginTrait
Trait for adding an "enabled" state to plugins.

Namespace

Drupal\markdown\Traits

Code

public function isEnabled() {
  $enabled = $this->config
    ->get('enabled');
  return isset($enabled) ? !!$enabled : $this
    ->enabledByDefault();
}