You are here

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

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

Gets the Permission setting for whether or not the Campaign Rating should be used and tracked.

Return value

bool

Overrides LingotekIntelligenceMetadataInterface::getCampaignRatingPermission

File

src/LingotekIntelligenceServiceConfig.php, line 309

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

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