
| Current Path : /var/www/html/rocksensor1/web/core/modules/contact/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/contact/contact.post_update.php |
<?php
/**
* @file
* Post update functions for Contact.
*/
/**
* Implements hook_removed_post_updates().
*/
function contact_removed_post_updates() {
return [
'contact_post_update_add_message_redirect_field_to_contact_form' => '9.0.0',
];
}
/**
* Converts empty `default_form` in settings to NULL.
*/
function contact_post_update_set_empty_default_form_to_null(): void {
$config = \Drupal::configFactory()->getEditable('contact.settings');
// 'default_form' in 'contact.settings' config must be stored as NULL if it
// is empty.
if ($config->get('default_form') === '') {
$config->set('default_form', NULL)->save();
}
}