public function LingotekProfile::setAutomaticDownloadForTarget in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticDownloadForTarget()
- 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\EntityCode
public function setAutomaticDownloadForTarget($langcode, $value) {
$this->language_overrides[$langcode]['custom']['auto_download'] = $value;
return $this;
}