1 system.install system_update_1054()

Changes the key in layout config files from 'layout' to 'layout_template'.

Related topics

File

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

Code

function system_update_1054() {
  $layouts = config_get_names_with_prefix('layout.layout.');
  foreach ($layouts as $layout_name) {
    $config = config($layout_name);
    $configs = $config->get();
    if (isset($configs['layout'])) {
      $configs['layout_template'] = $configs['layout'];
      unset($configs['layout']);
    }
    $config->setData($configs);
    $config->save();
  }
}