You are here

public function LingotekIntelligenceServiceConfig::getAuthorEmailPermission in Lingotek Translation 3.2.x

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

Gets the Permission setting for whether or not the Author Email should be sent.

Return value

bool

Overrides LingotekIntelligenceMetadataInterface::getAuthorEmailPermission

File

src/LingotekIntelligenceServiceConfig.php, line 234

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

public function getAuthorEmailPermission() {
  $config = $this->configFactory
    ->get('lingotek.settings');
  return $config
    ->get('intelligence.use_author_email');
}