You are here

public function LingotekIntelligenceServiceConfig::getDefaultAuthorEmail in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  2. 4.0.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  3. 3.0.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  4. 3.1.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  5. 3.2.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  6. 3.3.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  7. 3.4.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  8. 3.6.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  9. 3.7.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()
  10. 3.8.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getDefaultAuthorEmail()

Gets the Default Author Email.

Return value

bool

Overrides LingotekIntelligenceMetadataInterface::getDefaultAuthorEmail

File

src/LingotekIntelligenceServiceConfig.php, line 215

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

public function getDefaultAuthorEmail() {
  $value = NULL;
  $config = $this->configFactory
    ->get('lingotek.settings');
  if ($config
    ->get('intelligence.use_author_email')) {
    $value = $config
      ->get('intelligence.default_author_email');
  }
  return $value;
}