public function LingotekProfile::hasCustomSettingsForTarget in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
- 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasCustomSettingsForTarget()
Checks if the profile has custom settings for a given target language.
Parameters
string $langcode: The language code.
Return value
bool TRUE if there are customizations, FALSE if not.
Overrides LingotekProfileInterface::hasCustomSettingsForTarget
4 calls to LingotekProfile::hasCustomSettingsForTarget()
- LingotekProfile::getVaultForTarget in src/
Entity/ LingotekProfile.php - Gets the vault to be used for a given language.
- LingotekProfile::getWorkflowForTarget in src/
Entity/ LingotekProfile.php - Gets the workflow to be used for a given language.
- LingotekProfile::hasAutomaticDownloadForTarget in src/
Entity/ LingotekProfile.php - Returns whether this profile indicates automatic download of translations for an specific target language.
- LingotekProfile::hasAutomaticRequestForTarget in src/
Entity/ LingotekProfile.php - Returns whether this profile indicates automatic request of translations for an specific target language.
File
- src/
Entity/ LingotekProfile.php, line 888
Class
- LingotekProfile
- Defines the LingotekProfile entity.
Namespace
Drupal\lingotek\EntityCode
public function hasCustomSettingsForTarget($langcode) {
return isset($this->language_overrides[$langcode]) && $this->language_overrides[$langcode]['overrides'] === 'custom';
}