You are here

public function LingotekIntelligenceServiceConfig::setCampaignRating in Lingotek Translation 3.4.x

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

Sets the Campaign Rating. The Campaign rating must be numeric, but can otherwise be used to rate the campaign and its effect on this content.

Parameters

int $campaign_rating: The Campaign Rating.

Return value

$this

Overrides LingotekIntelligenceMetadataInterface::setCampaignRating

File

src/LingotekIntelligenceServiceConfig.php, line 94

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

public function setCampaignRating($campaign_rating) {
  return $this
    ->setValue('campaign_rating', $campaign_rating);
}