You are here

public function YamlFormEmailProvider::getMailPluginId in YAML Form 8

Get the mail back-end plugin id.

Return value

string The email handler plugin id.

Overrides YamlFormEmailProviderInterface::getMailPluginId

1 call to YamlFormEmailProvider::getMailPluginId()
YamlFormEmailProvider::getMailPluginDefinition in src/YamlFormEmailProvider.php
Get the mail back-end plugin definition.

File

src/YamlFormEmailProvider.php, line 147

Class

YamlFormEmailProvider
Manages and provides HTML email support.

Namespace

Drupal\yamlform

Code

public function getMailPluginId() {
  $config = $this->configFactory
    ->get('system.mail');
  return $config
    ->get('interface.yamlform') ?: $config
    ->get('interface.default') ?: FALSE;
}