You are here

public function WebformEmailProvider::getModule in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\webform

Code

public function getModule() {
  if ($this
    ->installed()) {
    return 'webform';
  }
  else {
    $modules = $this
      ->getModules();
    foreach ($modules as $module) {
      if ($this
        ->moduleEnabled($module)) {
        return $module;
      }
    }
  }
  return FALSE;
}