You are here

public function LingotekProfile::isTargetLocaleDisabled in Lingotek Translation 7.7

2 calls to LingotekProfile::isTargetLocaleDisabled()
LingotekProfile::filterTargetLocales in lib/Drupal/lingotek/LingotekProfile.php
LingotekProfile::isTargetLocaleCustom in lib/Drupal/lingotek/LingotekProfile.php

File

lib/Drupal/lingotek/LingotekProfile.php, line 432
Defines LingotekProfile

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public function isTargetLocaleDisabled($target_locale) {

  // don't check for disabled attributes in the parent profiles
  $this
    ->setInherit(FALSE);
  $disabled = FALSE;
  if ($this
    ->getAttribute('disabled', $target_locale)) {
    $disabled = TRUE;
  }
  $this
    ->setInherit(TRUE);
  return $disabled;
}