You are here

protected function LingotekIntelligenceServiceConfig::setValue in Lingotek Translation 3.2.x

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

Helper for setting a value to config.

Parameters

string $key: The key.

$value: The value.

Return value

$this

28 calls to LingotekIntelligenceServiceConfig::setValue()
LingotekIntelligenceServiceConfig::setAuthorEmailPermission in src/LingotekIntelligenceServiceConfig.php
Sets the Permission setting for whether or not an Author Email should be used in the Intelligence Metadata.
LingotekIntelligenceServiceConfig::setAuthorPermission in src/LingotekIntelligenceServiceConfig.php
Sets the Permission setting for whether or not the author information should be sent.
LingotekIntelligenceServiceConfig::setBaseDomainPermission in src/LingotekIntelligenceServiceConfig.php
Sets the Permission setting for whether or not to include the Base Domain in the metadata.
LingotekIntelligenceServiceConfig::setBusinessDivision in src/LingotekIntelligenceServiceConfig.php
Set the Business Division responsible for the content with this metadata. A Business Division is defined as a discrete part of a company that may operate under the same name and legal responsibility or as a separate corporate and legal entity under…
LingotekIntelligenceServiceConfig::setBusinessDivisionPermission in src/LingotekIntelligenceServiceConfig.php
Sets the Permission setting for whether or not to use the Business Division.

... See full list

File

src/LingotekIntelligenceServiceConfig.php, line 483

Class

LingotekIntelligenceServiceConfig
Service for managing Lingotek Intelligence related configuration.

Namespace

Drupal\lingotek

Code

protected function setValue($key, $value) {
  $config = $this->configFactory
    ->getEditable('lingotek.settings');
  $config
    ->set('intelligence.' . $key, $value);
  $config
    ->save();
  return $this;
}