You are here

public function LingotekProfile::hasDisabledTarget in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasDisabledTarget()
  2. 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasDisabledTarget()
  3. 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasDisabledTarget()
  4. 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::hasDisabledTarget()

Checks if the profile has disabled the given target language.

Parameters

string $langcode: The language code.

Return value

bool TRUE if it is disabled, FALSE if not.

Overrides LingotekProfileInterface::hasDisabledTarget

4 calls to LingotekProfile::hasDisabledTarget()
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 895

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

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