protected function LingotekIntelligenceServiceConfig::getValue in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 4.0.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.0.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.1.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.2.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.3.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.4.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.6.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 3.7.x src/LingotekIntelligenceServiceConfig.php \Drupal\lingotek\LingotekIntelligenceServiceConfig::getValue()
- 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.
File
- src/
LingotekIntelligenceServiceConfig.php, line 464
Class
- LingotekIntelligenceServiceConfig
- Service for managing Lingotek Intelligence related configuration.
Namespace
Drupal\lingotekCode
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;
}