public function Translator::setSetting in Translation Management Tool 8
Sets a definition setting.
Parameters
string|array $setting_name: The definition setting to set.
mixed $value: The value to set.
Return value
static The object itself for chaining.
Overrides TranslatorInterface::setSetting
File
- src/
Entity/ Translator.php, line 204
Class
- Translator
- Entity class for the tmgmt_translator entity.
Namespace
Drupal\tmgmt\EntityCode
public function setSetting($setting_name, $value) {
NestedArray::setValue($this->settings, (array) $setting_name, $value);
return $this;
}