You are here

public function GlobalredirectSettingsForm::getDefaultSettings in Global Redirect 8

Returns an associative array of default settings

Return value

array

1 call to GlobalredirectSettingsForm::getDefaultSettings()
GlobalredirectSettingsForm::submitResetDefaults in src/Form/GlobalredirectSettingsForm.php
Clears the caches.

File

src/Form/GlobalredirectSettingsForm.php, line 176
This is the GlobalRedirect admin include which provides an interface to global redirect to change some of the default settings Contains \Drupal\globalredirect\Form\GlobalredirectSettingsForm.

Class

GlobalredirectSettingsForm
Defines a form to configure module settings.

Namespace

Drupal\globalredirect\Form

Code

public function getDefaultSettings() {
  $defaults = array(
    'deslash' => 1,
    'nonclean_to_clean' => 1,
    'access_check' => 0,
    'normalize_aliases' => 1,
    'canonical' => 0,
    'content_location_header' => 0,
    'term_path_handler' => 1,
    'frontpage_redirect' => 1,
    'ignore_admin_path' => 1,
  );
  return $defaults;
}