public function WebformEmailProvider::getModule in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformEmailProvider.php \Drupal\webform\WebformEmailProvider::getModule()
Get the HTML email provider module machine name.
Return value
bool|string The HTML email provider module machine name.
Overrides WebformEmailProviderInterface::getModule
1 call to WebformEmailProvider::getModule()
- WebformEmailProvider::getModuleName in src/
WebformEmailProvider.php - Get the HTML email provider human readable module name.
File
- src/
WebformEmailProvider.php, line 126
Class
- WebformEmailProvider
- Manages and provides HTML email support.
Namespace
Drupal\webformCode
public function getModule() {
if ($this
->installed()) {
return 'webform';
}
else {
$modules = $this
->getModules();
foreach ($modules as $module) {
if ($this
->moduleEnabled($module)) {
return $module;
}
}
}
return FALSE;
}