public function TMGMTDefaultTranslatorPluginController::defaultSettings in Translation Management Tool 7
Defines default settings.
Return value
array An array of default settings.
Overrides TMGMTTranslatorPluginControllerInterface::defaultSettings
1 method overrides TMGMTDefaultTranslatorPluginController::defaultSettings()
- TMGMTFileTranslatorPluginController::defaultSettings in translators/
file/ tmgmt_file.plugin.inc - Defines default settings.
File
- plugin/
tmgmt.plugin.translator.inc, line 180 - Contains the abstract translator base plugin class.
Class
- TMGMTDefaultTranslatorPluginController
- Default controller class for service plugins.
Code
public function defaultSettings() {
$defaults = array(
'auto_accept' => FALSE,
);
// Check if any default settings are defined in the plugin info.
if (isset($this->pluginInfo['default settings'])) {
return array_merge($defaults, $this->pluginInfo['default settings']);
}
return $defaults;
}