You are here

public function SmartlingTranslator::defaultSettings in TMGMT Translator Smartling 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::defaultSettings()
  2. 8.2 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::defaultSettings()
  3. 8.3 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::defaultSettings()

Defines default settings.

Return value

array An array of default settings.

Overrides TranslatorPluginBase::defaultSettings

File

src/Plugin/tmgmt/Translator/SmartlingTranslator.php, line 393
Contains \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator.

Class

SmartlingTranslator
Smartling translator plugin.

Namespace

Drupal\tmgmt_smartling\Plugin\tmgmt\Translator

Code

public function defaultSettings() {
  return array(
    'export_format' => 'xml',
    'allow_override' => TRUE,
    'scheme' => 'public',
    'retrieval_type' => 'published',
    'callback_url_use' => FALSE,
    'auto_authorize_locales' => TRUE,
    'xliff_processing' => TRUE,
    'context_silent_user_switching' => FALSE,
    'custom_regexp_placeholder' => '(@|%|!)[\\w-]+',
    'context_skip_host_verifying' => FALSE,
    'identical_file_name' => FALSE,
    'enable_basic_auth' => FALSE,
    'basic_auth' => [
      'login' => '',
      'password' => '',
    ],
  );
}