function system_update_8029

Convert path_alias_whitelist variable to state API.

Related topics

File

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

Code

function system_update_8029() {
  if ($value = update_variable_get('path_alias_whitelist', FALSE)) {
    Drupal::state()
      ->set('system.path_alias_whitelist', $value);
  }
  update_variable_del('path_alias_whitelist');
}