redirect_after_logout.install in Redirect after logout 8
Same filename and directory in other branches
Install file for Redirect after logout module.
File
redirect_after_logout.installView 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
Name | Description |
---|---|
redirect_after_logout_update_8101 | Change configuration schema. |