You are here

public function LingotekProfile::hasCustomSettingsForTarget in Lingotek Translation 3.0.x

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

3 calls to LingotekProfile::hasCustomSettingsForTarget()
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 864

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

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