function social_content_translation_update_10301 in Open Social 10.3.x
Add translations compatibility for Topics.
File
- modules/
custom/ social_language/ modules/ social_content_translation/ social_content_translation.install, line 152 - Installation tasks for the Social Language Content Translation module.
Code
function social_content_translation_update_10301() {
$module_names = [
'social_topic',
];
$config = \Drupal::configFactory()
->getEditable('social_content_translation.settings');
foreach ($module_names as $module_name) {
$config
->set($module_name, TRUE);
$config
->save(TRUE);
}
}