public function LingotekProfile::hasAutomaticRequestForTarget in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasAutomaticRequestForTarget()
- 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\EntityCode
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;
}