You are here

public function YamlFormEmailProvider::uninstall in YAML Form 8

Uninstall form's PHP mail handler which supports sending HTML emails.

Overrides YamlFormEmailProviderInterface::uninstall

1 call to YamlFormEmailProvider::uninstall()
YamlFormEmailProvider::check in src/YamlFormEmailProvider.php
Check if the YAML Form module should provide support for sending HTML emails.

File

src/YamlFormEmailProvider.php, line 112

Class

YamlFormEmailProvider
Manages and provides HTML email support.

Namespace

Drupal\yamlform

Code

public function uninstall() {
  $config = $this->configFactory
    ->getEditable('system.mail');
  $mail_plugins = $config
    ->get('interface');
  unset($mail_plugins['yamlform']);
  $config
    ->set('interface', $mail_plugins)
    ->save();
}