You are here

function contact_emails_update_8004 in Contact Emails 8

Remove the empty malformed contact emails config if it exists.

File

./contact_emails.install, line 150
Contact emails database table.

Code

function contact_emails_update_8004(&$sandbox) {
  $config = \Drupal::configFactory()
    ->getEditable('contact_emails.ContactEmailDelete');
  if ($config) {
    $config
      ->delete();
  }
  $config = \Drupal::configFactory()
    ->getEditable('contact_emails.ContactEmailSettings');
  if ($config) {
    $config
      ->delete();
  }
}