$config = \Drupal::config('contact.form.feedback');
  // Update the recipients if the default configuration entity has been created.
  // We should never rely on default config entities as during enabling a module
  // during config sync they will not exist.
  if (!$config->isNew()) {
    \Drupal::config('contact.form.feedback')->set('recipients', array($site_mail))->save();
  }

Is dead code

CommentFileSizeAuthor
#1 2349651.1.patch951 bytesalexpott

Comments

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new951 bytes
larowlan’s picture

Status: Needs review » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed 5e154f0 on 8.0.x
    Issue #2362519 by alexpott: Fixed Remove dead code from contact.install.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.