You are here

public function LingotekIntelligenceServiceConfig::getAuthorPermission in Lingotek Translation 3.8.x

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

Gets the Permission setting for Author Permission.

Return value

bool

Overrides LingotekIntelligenceMetadataInterface::getAuthorPermission

File

src/LingotekIntelligenceServiceConfig.php, line 199

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

public function getAuthorPermission() {
  $value = NULL;
  $config = $this->configFactory
    ->get('lingotek.settings');
  return $config
    ->get('intelligence.use_author');
}