function autologout_update_8002 in Automated Logout 8
Configure default value for dialog title.
File
- ./
autologout.install, line 43 - Install and update functions for the autologout module.
Code
function autologout_update_8002(&$sandbox) {
$autologout_settings = \Drupal::service('config.factory')
->getEditable('autologout.settings');
$default_dialog_title = \Drupal::config('system.site')
->get('name') . ' Alert';
$autologout_settings
->set('dialog_title', $default_dialog_title)
->save();
}