You are here

public function LingotekProfile::setCampaignRatingPermission in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  2. 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  3. 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  4. 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  5. 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  6. 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  7. 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  8. 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  9. 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setCampaignRatingPermission()
  10. 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::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/Entity/LingotekProfile.php, line 507

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

public function setCampaignRatingPermission($use_campaign_rating) {
  $this->intelligence_metadata['use_campaign_rating'] = $use_campaign_rating;
  return $this;
}