You are here

public function GlobalLinkTranslator::defaultSettings in GlobalLink Connect for Drupal 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/tmgmt/Translator/GlobalLinkTranslator.php \Drupal\globallink\Plugin\tmgmt\Translator\GlobalLinkTranslator::defaultSettings()

Defines default settings.

Return value

array An array of default settings.

Overrides TranslatorPluginBase::defaultSettings

File

src/Plugin/tmgmt/Translator/GlobalLinkTranslator.php, line 723

Class

GlobalLinkTranslator
GlobalLink translation plugin controller.

Namespace

Drupal\globallink\Plugin\tmgmt\Translator

Code

public function defaultSettings() {
  $defaults = parent::defaultSettings();

  // Enable CDATA for content encoding in File translator.
  $defaults['xliff_cdata'] = TRUE;
  return $defaults;
}