You are here

public function LingotekProfile::hasAutomaticRequestForTarget in Lingotek Translation 3.3.x

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

Returns whether this profile indicates automatic request of translations for an specific target language.

Parameters

string $langcode: The language code.

Return value

bool Whether the profile indicates automatic request or not.

Overrides LingotekProfileInterface::hasAutomaticRequestForTarget

File

src/Entity/LingotekProfile.php, line 826

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

public function hasAutomaticRequestForTarget($langcode) {
  $auto_request = $this
    ->hasAutomaticRequest();
  if (isset($this->language_overrides[$langcode]) && $this
    ->hasCustomSettingsForTarget($langcode)) {
    $auto_request = $this->language_overrides[$langcode]['custom']['auto_request'];
  }
  return $auto_request;
}