1 system.install system_update_1074()

Make sure that all config translatables are set for system core.

Related topics

File

core/modules/system/system.install, line 3278
Install, update and uninstall functions for the system module.

Code

function system_update_1074() {
  $config = config('system.core');
  $available = $config->get('_config_translatables');
  if ($available === NULL || count($available) < 4) {
    // @see core/modules/system/config/system.core.json
    $system_translatables = array(
      'anonymous',
      'site_name',
      'site_slogan',
      'maintenance_mode_message',
    );
    if (is_array($available)) {
      // Consider other values than the default ones from core.
      $system_translatables = array_merge($available, $system_translatables);
      $system_translatables = array_values(array_unique($system_translatables));
    }
    $config->set('_config_translatables', $system_translatables);
    $config->save();
  }
}