public function YamlFormEmailProvider::getModule in YAML Form 8
Get the HTML email provider module machine name.
Return value
bool|string The HTML email provider module machine name.
Overrides YamlFormEmailProviderInterface::getModule
1 call to YamlFormEmailProvider::getModule()
- YamlFormEmailProvider::getModuleName in src/
YamlFormEmailProvider.php - Get the HTML email provider human readable module name.
File
- src/
YamlFormEmailProvider.php, line 122
Class
- YamlFormEmailProvider
- Manages and provides HTML email support.
Namespace
Drupal\yamlformCode
public function getModule() {
if ($this
->installed()) {
return 'yamlform';
}
else {
$modules = $this
->getModules();
foreach ($modules as $module) {
if ($this->moduleHandler
->moduleExists($module)) {
return $module;
}
}
}
return FALSE;
}