1 system.install system_update_1065()

Update the maintenance mode message field to use tokens.

Related topics

File

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

Code

function system_update_1065() {
  $config = config('system.core');
  $old_message = $config->get('maintenance_mode_message');
  $new_message = str_replace('@site', '[site:name]', $old_message);
  $config->set('maintenance_mode_message', $new_message);
  $config->save();
}