You are here

public function TranslatorPluginBase::defaultSettings in Translation Management Tool 8

Defines default settings.

Return value

array An array of default settings.

Overrides TranslatorPluginInterface::defaultSettings

1 method overrides TranslatorPluginBase::defaultSettings()
FileTranslator::defaultSettings in translators/tmgmt_file/src/Plugin/tmgmt/Translator/FileTranslator.php
Defines default settings.

File

src/TranslatorPluginBase.php, line 105

Class

TranslatorPluginBase
Default controller class for service plugins.

Namespace

Drupal\tmgmt

Code

public function defaultSettings() {
  $defaults = array();

  // Check if any default settings are defined in the plugin info.
  if (isset($this->pluginDefinition['default_settings'])) {
    return array_merge($defaults, $this->pluginDefinition['default_settings']);
  }
  return $defaults;
}