You are here

function view_password_post_update_move_configuration in View Password 8.5

Same name and namespace in other branches
  1. 6.0.x view_password.post_update.php \view_password_post_update_move_configuration()

Moves configuration to own namespace.

File

./view_password.post_update.php, line 11
Post update functions for View password module.

Code

function view_password_post_update_move_configuration() {
  $factory = \Drupal::configFactory();
  $config = $factory
    ->getEditable('pwd.settings');
  $factory
    ->getEditable('view_password.settings')
    ->set('form_ids', $config
    ->get('pwd.form_id_pwd'))
    ->save(TRUE);
  $config
    ->delete();
}