You are here

redirect_after_logout.install in Redirect after logout 8

Same filename and directory in other branches
  1. 7 redirect_after_logout.install

Install file for Redirect after logout module.

File

redirect_after_logout.install
View source
<?php

/**
 * @file
 * Install file for Redirect after logout module.
 */

/**
 * Change configuration schema.
 */
function redirect_after_logout_update_8101(&$sandbox) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('redirect_after_logout.settings');
  $config_value = $config
    ->get();
  $config
    ->delete();
  $config
    ->set('destination', $config_value['redirect_after_logout_destination']);
  $config
    ->set('message', $config_value['redirect_after_logout_message']);
  $config
    ->save(TRUE);
}

Functions

Namesort descending Description
redirect_after_logout_update_8101 Change configuration schema.