You are here

public function LingotekIntelligenceServiceConfig::getContactEmailForAuthorPermission in Lingotek Translation 3.1.x

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

Gets the Permission setting for whether or not to use the Contact Email as the author's email.

Return value

bool

Overrides LingotekIntelligenceMetadataInterface::getContactEmailForAuthorPermission

File

src/LingotekIntelligenceServiceConfig.php, line 249

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

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