protected function LingotekIntelligenceService::getValue in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 4.0.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.0.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.2.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.3.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.4.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.5.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.6.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.7.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::getValue()
- 3.8.x src/LingotekIntelligenceService.php \Drupal\lingotek\LingotekIntelligenceService::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 LingotekIntelligenceService::getValue()
- LingotekIntelligenceService::getBusinessDivision in src/
LingotekIntelligenceService.php - Gets the Business Division associated with this content.
- LingotekIntelligenceService::getBusinessUnit in src/
LingotekIntelligenceService.php - Gets the Business Unit associated with this content.
- LingotekIntelligenceService::getCampaignId in src/
LingotekIntelligenceService.php - Get the Campaign ID associated with this content.
- LingotekIntelligenceService::getCampaignRating in src/
LingotekIntelligenceService.php - Get the Campaign Rating associated with the content and the Campaign (which is represented by the Campaign ID).
- LingotekIntelligenceService::getChannel in src/
LingotekIntelligenceService.php - Gets the Channel associated with the content.
File
- src/
LingotekIntelligenceService.php, line 471
Class
- LingotekIntelligenceService
- Service for managing Lingotek Intelligence related configuration.
Namespace
Drupal\lingotekCode
protected function getValue($key) {
$value = NULL;
$method = $key;
$permissionMethod = $key . 'Permission';
if ($this->profile !== NULL && $this->profile
->hasIntelligenceMetadataOverrides()) {
if ($this->profile
->{$permissionMethod}()) {
$value = $this->profile
->{$method}();
}
}
else {
if ($this->intelligenceConfig
->{$permissionMethod}()) {
$value = $this->intelligenceConfig
->{$method}();
}
}
return $value;
}