You are here

public static function TrailingSlashSettingsHelper::isEnabled in Trailing Slash 8

Return value

bool

1 call to TrailingSlashSettingsHelper::isEnabled()
TrailingSlashOutboundPathProcessor::isPathWithTrailingSlash in src/PathProcessor/TrailingSlashOutboundPathProcessor.php

File

src/Helper/Settings/TrailingSlashSettingsHelper.php, line 17

Class

TrailingSlashSettingsHelper
Class TrailingSlashSettingsHelper

Namespace

Drupal\trailing_slash\Helper\Settings

Code

public static function isEnabled() : bool {
  static $enabled;
  if (!isset($is_enabled)) {
    $config = \Drupal::config('trailing_slash.settings');
    $enabled = $config
      ->get('enabled');
  }
  return $enabled;
}