You are here

public function LingotekProfile::setAutomaticDownloadForTarget in Lingotek Translation 4.0.x

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

Sets whether this profile indicates automatic download of translations for an specific target language.

Parameters

string $langcode: The language code.

bool $value: TRUE if translation should be automatically downloaded, FALSE if not.

Return value

$this

Overrides LingotekProfileInterface::setAutomaticDownloadForTarget

File

src/Entity/LingotekProfile.php, line 880

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

public function setAutomaticDownloadForTarget($langcode, $value) {
  $this->language_overrides[$langcode]['custom']['auto_download'] = $value;
  return $this;
}