You are here

public function LingotekProfile::setAutomaticRequestForTarget in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  2. 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  3. 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  4. 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  5. 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  6. 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  7. 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  8. 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  9. 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setAutomaticRequestForTarget()
  10. 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\Entity

Code

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