public function LingotekProfile::setAutomaticRequestForTarget in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
- 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
Sets whether this profile indicates automatic request of translations for an specific target language.
Parameters
string $langcode: The language code.
bool $value: TRUE if translation should be automatically requested, FALSE if not.
Return value
$this
Overrides LingotekProfileInterface::setAutomaticRequestForTarget
File
- src/
Entity/ LingotekProfile.php, line 858
Class
- LingotekProfile
- Defines the LingotekProfile entity.
Namespace
Drupal\lingotek\EntityCode
public function setAutomaticRequestForTarget($langcode, $value) {
$this->language_overrides[$langcode]['custom']['auto_request'] = $value;
return $this;
}