You are here

public function LingotekIntelligenceService::setCampaignRatingPermission in Lingotek Translation 3.2.x

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

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

Parameters

bool $use_campaign_rating: Flag indicating if we want to indicate the Campaign Rating.

Return value

$this

Overrides LingotekIntelligenceMetadataInterface::setCampaignRatingPermission

File

src/LingotekIntelligenceService.php, line 333

Class

LingotekIntelligenceService
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

public function setCampaignRatingPermission($use_campaign_rating) {
  return $this
    ->setValue('use_campaign_rating', $use_campaign_rating);
}