You are here

public function LingotekProfile::setAutoDownload in Lingotek Translation 7.7

File

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

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public function setAutoDownload($active, $target_locale = NULL) {

  // Make sure only TRUE or FALSE is saved.
  $active = (bool) $active;
  $this
    ->setAttribute('auto_download', $active, $target_locale);
}