You are here

protected function LingotekIntelligenceServiceConfig::getValue in Lingotek Translation 3.1.x

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

Helper for getting a value from config, validating that the usage is set.

Parameters

string $key: The key.

Return value

array|mixed|null

11 calls to LingotekIntelligenceServiceConfig::getValue()
LingotekIntelligenceServiceConfig::getBusinessDivision in src/LingotekIntelligenceServiceConfig.php
Gets the Business Division associated with this content.
LingotekIntelligenceServiceConfig::getBusinessUnit in src/LingotekIntelligenceServiceConfig.php
Gets the Business Unit associated with this content.
LingotekIntelligenceServiceConfig::getCampaignId in src/LingotekIntelligenceServiceConfig.php
Get the Campaign ID associated with this content.
LingotekIntelligenceServiceConfig::getCampaignRating in src/LingotekIntelligenceServiceConfig.php
Get the Campaign Rating associated with the content and the Campaign (which is represented by the Campaign ID).
LingotekIntelligenceServiceConfig::getChannel in src/LingotekIntelligenceServiceConfig.php
Gets the Channel associated with the content.

... See full list

File

src/LingotekIntelligenceServiceConfig.php, line 464

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

protected function getValue($key) {
  $value = NULL;
  $config = $this->configFactory
    ->get('lingotek.settings');
  if ($config
    ->get('intelligence.use_' . $key)) {
    $value = $config
      ->get('intelligence.' . $key);
  }
  return $value;
}