public function WebformEmailProvider::getMailPluginId in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformEmailProvider.php \Drupal\webform\WebformEmailProvider::getMailPluginId()
Get the mail back-end plugin id.
Return value
string The email handler plugin id.
Overrides WebformEmailProviderInterface::getMailPluginId
1 call to WebformEmailProvider::getMailPluginId()
- WebformEmailProvider::getMailPluginDefinition in src/
WebformEmailProvider.php - Get the mail back-end plugin definition.
File
- src/
WebformEmailProvider.php, line 168
Class
- WebformEmailProvider
- Manages and provides HTML email support.
Namespace
Drupal\webformCode
public function getMailPluginId() {
$config = $this->configFactory
->get('system.mail');
return $config
->get('interface.webform') ?: $config
->get('interface.default') ?: FALSE;
}